🔒 16 harder puzzles locked — reach 🥷 Console Cadet to unlock.
01$stateProvider.state('profile', {02 url: '/profile/:id',03 templateUrl: 'profile.html',04 controller: 'ProfileCtrl',05 ▢ ▢ ▢ ▢06});
resolve: { user: function($stateParams, userService) { return userService.get($stateParams.id); } }
// fetch in the controller, show a spinner
onEnter: function() { return userService.get(); }