简体   繁体   English

如何在带有验证支持的角度2中添加引导表单?

[英]How to add bootstrap forms in angular 2 with validation support?

I have tried to create the form like given in below link: 我试图创建下面的链接中给出的形式:

https://angular.io/docs/ts/latest/guide/forms.html https://angular.io/docs/ts/latest/guide/forms.html

In above link please took look under the bootstrap topic. 在上面的链接中,请查看引导主题下的内容。

I have imported the forms as like below code example 我已经导入了如下代码示例所示的表单

   import { bootstrap } from '@angular/platform-browser-dynamic';
   import { disableDeprecatedForms, provideForms } from '@angular/forms';

   bootstrap(AppComponent, [
   disableDeprecatedForms(),
   provideForms()
   ])

but the webpage throws 404 found issue in a page while importing the forms. 但网页在导入表单时在页面中抛出404发现问题。

 http://localhost:3000/node_modules/@angular/platform-browser-dynamic/platform-browser-dynamic.umd.js 

 Failed to load resource: the server responded with a status of 404 (Not Found)

  http://localhost:3000/node_modules/@angular/forms/forms.umd.js Failed to    load resource: the server responded with a status of 404 (Not Found)

I am using angular 1.0.0 rc.1 update. 我正在使用角度1.0.0 rc.1更新。 Can you please anyone suggest to use these new forms, bootstrap with my current version since upgrading to another version may take more changes with my application. 您能否请任何建议使用这些新表格的人使用我的当前版本进行引导,因为升级到另一个版本可能会对我的应用程序进行更多更改。

I have checked more. 我检查了更多。 But the only solution is updating to RC4 version since the forms support given only from rc2. 但是唯一的解决方案是更新到RC4版本,因为仅rc2提供了对表格的支持。 So i have upgraded my application Thanks 所以我已经升级了我的应用程序,谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM