Created
August 18, 2016 11:19
-
-
Save nanlabsweb/3c8d9f45451030d8578288c11769c84c to your computer and use it in GitHub Desktop.
POST - Angular child states example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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