uiRouter is an alternative router for AngularJS v1.0. Instead of configuring a list of routes, you configure states.
We can set multiple named views inside of a state. This feature is a particularly powerful one in ui-router: Inside of a single view, we can define multiple views that we can reference inside of a single template.
Just like in ngRoute, we can either associate an already registered controller with a URL (via a string) or we can create a controller function that operates as the controller for the state.
If there is no template defined (in one of the previous options), then the controller will not be created.
Your new post is loading...