Created
February 26, 2017 01:28
-
-
Save JoaoVagner/ae8e1023a23fe839d515179d39ecde81 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
EcofitApp | |
.config(function($stateProvider, $urlRouterProvider) { | |
$stateProvider | |
.state('app', { | |
url: "/app", | |
abstract: true, | |
templateUrl: "templates/menu.html", | |
controller: 'welcome' | |
}) | |
.state('app.search', { | |
url: "/search", | |
views: { | |
'menuContent' :{ | |
templateUrl: "search.html" | |
} | |
} | |
}) | |
.state('app.browse', { | |
url: "/browse", | |
views: { | |
'menuContent' :{ | |
templateUrl: "browse.html" | |
} | |
} | |
}) | |
.state('app.sessions', { | |
url: "/sessions", | |
views: { | |
'menuContent': { | |
templateUrl: "templates/sessions.html", | |
controller: 'SessionsCtrl' | |
} | |
} | |
}) | |
.state('app.session', { | |
url: "/sessions/:sessionId", | |
views: { | |
'menuContent': { | |
templateUrl: "templates/session.html", | |
controller: 'SessionCtrl' | |
} | |
} | |
}) | |
.state('app.profileFacebook', { | |
url: "/profilefacebook", | |
views: { | |
'menuContent': { | |
templateUrl: "templates/profileFacebook.html", | |
controller: "ProfileFacebookCtrl" | |
} | |
} | |
}) | |
.state('app.profileInstagram', { | |
url: "/profileinstagram", | |
views: { | |
'menuContent': { | |
templateUrl: "templates/profileInstagram.html", | |
controller: "ProfileInstagramCtrl" | |
} | |
} | |
}) | |
// if none of the above states are matched, use this as the fallback | |
$urlRouterProvider.otherwise('/app/sessions'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment