0

For my project I want a different view for my login page, If I use template directive only angular wrap my login page into index.html (the template of the app)

  .state('login',{
        url:'/',
        controller:'loginController',
        templateUrl: './components/login/login.html',
        controllerAs: 'vm'
    })

I want independant page for this, how I can do that ?

5
  • What is your question again? It look like you're doing the right thing here - You created a state for the login page and you can redirect the user to that state Commented Mar 13, 2017 at 14:01
  • I use the directe ui-view. the result is note different view from layout the view is wrapped into the layout. Commented Mar 13, 2017 at 14:02
  • 1
    Did you try replacing templateUrl with redirectTo stackoverflow.com/questions/33720267/… Commented Mar 13, 2017 at 14:06
  • I try now. thet bad ! Commented Mar 13, 2017 at 14:15
  • is it multiple view? angularjs is a single page app. Commented Mar 13, 2017 at 14:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.