Created
December 16, 2016 11:46
-
-
Save guilhermegregio/7b2b2230aee34a0d7a6728e317bdac3c 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
var modulePrimary = angular.module('app', ['app.header', 'app.footer', 'app.sidebar', 'app.container']); | |
var moduleHeader = angular.module('app.header', []); | |
var moduleFooter = angular.module('app.footer', []); | |
var moduleSidebar = angular.module('app.sidebar', []); | |
var moduleContainer = angular.module('app.container', ['app.home', 'app.contact']); | |
var moduleHome = angular.module('app.home', []); | |
var moduleContact = angular.module('app.contact', []); | |
modulePrimary.config(function($stateProvider){ | |
$stateProvider | |
.state('app', { | |
url: '/app', | |
abstract: true, | |
templateUrl: 'app.html' | |
}); | |
}); | |
moduleHome.config(function($stateProvider){ | |
$stateProvider | |
.state('app.page', { | |
url: '/app/page', | |
abstract: true, | |
templateUrl: 'container.html' | |
}); | |
}); | |
moduleContainer.config(function($stateProvider){ | |
$stateProvider | |
.state('app.page.home', { | |
url: '/app/page/home', | |
templateUrl: 'home.html' | |
}); | |
}); | |
moduleContact.config(function($stateProvider){ | |
$stateProvider | |
.state('app.page.contact', { | |
url: '/app/page/contact', | |
templateUrl: 'contact.html' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment