Login Page without Index.html Design - ngRoute (AngularJS)

前端 未结 4 1368
礼貌的吻别
礼貌的吻别 2021-02-10 02:05

I\'m using ngRoute to do the routing of my AngularJS application (myApp) but I have a problem: I don\'t know how to NOT APPLY my index.html design (wit

4条回答
  •  旧时难觅i
    2021-02-10 02:47

    In your case you need to load new layout. I understand, for login and for application there is mostly different layout. This operation is equal to redirecting page to new location. With new angular app and controllers for login. You can use:

    $window.location.href="new/layout/template".

    Read more @ Angular Dev Docs.

提交回复
热议问题