我是否应该将登录视图作为应用程序的一部分? [英] Should I put the login view as part of my application?

查看:95
本文介绍了我是否应该将登录视图作为应用程序的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习@marionettejs,这是一个很棒的图书馆.
几乎所有示例都从整个应用程序开始,即从所有区域开始,例如导航栏,内容,菜单,页脚等.
在我的应用程序中,我有一个初始屏幕,显示登录表单,用户需要填写该表单才能访问该应用程序.
我的问题是:我应该将此登录表单视图作为应用程序的一部分吗? 您是否有一些示例(如果适用)?

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?

推荐答案

这取决于您要执行的操作.您看到的大多数示例都具有完整的应用程序,原因是它位于登录"屏幕的后面.换句话说,工作流程是这样的:

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. 用户登录
  2. 用户被重定向到包含Marionette应用程序的页面
  3. 该应用已启动

您当然也可以使用Backbone/Marionette来管理登录过程,但这往往需要更多工作.

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

这篇关于我是否应该将登录视图作为应用程序的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆