AngularJS 中的登录表单 Json

Login form in AngularJS with Json

我是Angular的新人,正在研究登录表单。

我使用的模型是这样的:PLNKR。有两个问题我无法解决。

非常感谢!

首先:您想摆脱模型 window 吗?

第二个:ng-repeat应该

<select >
   <option ng-repeat="type in userArray" value="{{type}}" >
        {{type}}
   </option>
</select>