Skip to content

Instantly share code, notes, and snippets.

@nanlabsweb
Created August 18, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanlabsweb/3c8d9f45451030d8578288c11769c84c to your computer and use it in GitHub Desktop.
Save nanlabsweb/3c8d9f45451030d8578288c11769c84c to your computer and use it in GitHub Desktop.
POST - Angular child states example.
angular.module('profile').config(function($stateProvider) {
return $stateProvider.state('my.messages.new', {
url: '/new',
views: {
'content': {
templateUrl: 'new-message.html',
controller: 'NewMessageController'
}
}
}).state('my.messages.inbox', {
url: '/inbox',
views: {
'content': {
templateUrl: 'messages-list.html',
controller: 'MessagesListController'
}
}
});
#Other child states
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment