Skip to content

Instantly share code, notes, and snippets.

@nanlabsweb
Created August 18, 2016 11:18
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/2e341b8e71d878613fce5f8a34697c43 to your computer and use it in GitHub Desktop.
Save nanlabsweb/2e341b8e71d878613fce5f8a34697c43 to your computer and use it in GitHub Desktop.
POST - Angular state example.
angular.module('profile').config(function($stateProvider) {
return $stateProvider.state('my.messages', {
url: '/messages',
views: {
'aside-navigation': {
templateUrl: 'aside-messages.html',
controller: 'AsideMessagesController'
},
'content': {
template: '<div ui-view="content"></div>'
}
},
abstract: true
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment