I have an angular app that uses *ui-router* for view routing.
I have a master template with all my layout, and inside that I have my
ui-view like below:
<div class="content" ui-view><div>
and my routes in 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");
}]);
In the code above, the templateUrl is injected in my content, as usual.
Now, I have a login page that uses a completely different layout of my app.
Is there any way to tell ui-router to use a custom layout? Any ideas on how
to structure that?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.