Should I put the login view as part of my application? [closed]

左心房为你撑大大i 提交于 2019-12-12 06:45:54

问题


I'm studying @marionettejs It's a fantastic library.
Almost all examples start with the whole application, ie, with all regions, like navbar, content, menu, footer, etc.
In my application, I have the initial screen that show the login form where the user need fill to access the application.
My question is: Should I put this login form view as part of app? Do you have some example, if applicable?


回答1:


It depends on what you want to do. The reason most examples you see have the full application, is because it is "behind" the log in screen. In other words, the workflow is like this:

  1. User logs in
  2. User is redirected to page containing the Marionette app
  3. The app is started

You can of course manage the login process with Backbone/Marionette as well, but it tends to be more work.



来源:https://stackoverflow.com/questions/17394094/should-i-put-the-login-view-as-part-of-my-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!