I am currently working on an Angular application that utilizes ui-router for view routing.
Within my master template, I have all the layout elements set up, including my ui-view as shown below:
<div class="content" ui-view>
<div>
Here are my routes defined in the app:
app.config(["$stateProvider", "$urlRouterProvider", function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state("customers", {
url: "/customers",
templateUrl: "app/customers/tpl.html",
controller: "Customers as vm"
});
$urlRouterProvider.otherwise("/dashboard");
}]);
The code above injects the templateUrl into the content section, as expected.
Now, I need to create a login page with a completely different layout from the rest of the app. Is there a way to instruct ui-router to use a custom layout for specific pages? How can this be achieved?