Answer the question
In order to leave comments, you need to log in
How to make 2 layouts in angular?
Used ui-router, $stateProvider.
There is a main one, on which there is a block with a ui-view
. So, now this ui-view, depending on the state, is replaced by either an authorization page or a registration page.
Question: how can I make another template to show other pages when the user is already logged in, since the template will be different from this one, which requires authorization and registration.
Also stick ui-view there and set up your state?
Answer the question
In order to leave comments, you need to log in
Well, you need to make 2 "sort of basic states".
those.
$stateProvider.state('base.authorized.%state_name%);
$stateProvider.state("base.unauthorized.%state_name%);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question