Last active
November 19, 2015 02:08
-
-
Save aaronmyatt/62ebabbafb6d3d95a670 to your computer and use it in GitHub Desktop.
Combining ui-router with directives
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
//Combining ui-router with directives to make beautiful, dynamic, controller-less apps | |
//Taken from here: http://stackoverflow.com/a/32875215/4993527 | |
$stateProvider.state('general', { | |
url: '/general', | |
views: { | |
main: { | |
template: '<general-directive></general-directive>' | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment