Login with ionic and material design

后端 未结 3 2130
暖寄归人
暖寄归人 2021-01-14 09:45

I have an ionic project with side menu and all. Now I want to add in simple way and login cool form, like http://ionicmaterial.com/ But the issue I didn\'t see any examples

3条回答
  •  無奈伤痛
    2021-01-14 10:14

    you can add new state login in app.js which will load login.html and controller and load it by defalut like:

    .state('login', { url: '/login', templateUrl: 'templates/login.html', controller: 'LoginCtrl' })

    // if none of the above states are matched, use this as the fallback $urlRouterProvider.otherwise('/login');

    and in login controller when you successfully login then you can redirect it to any page using $state.go('app.placeslists'); it will load regular pages.

提交回复
热议问题