• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript forms.disableDeprecatedForms函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中@angular/forms.disableDeprecatedForms函数的典型用法代码示例。如果您正苦于以下问题:TypeScript disableDeprecatedForms函数的具体用法?TypeScript disableDeprecatedForms怎么用?TypeScript disableDeprecatedForms使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了disableDeprecatedForms函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: bootstrap

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

import { appRouteProviders } from "./app.routes";

import { AppComponent } from './app.component';

bootstrap(AppComponent,[appRouteProviders,HTTP_PROVIDERS,provideForms(),disableDeprecatedForms()]);
开发者ID:rmadziyauswa,项目名称:cpp,代码行数:9,代码来源:main.ts


示例2: bootstrap

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

bootstrap(AppComponent,[disableDeprecatedForms(),provideForms()]).catch((err:any)=>console.error(err));
开发者ID:OneChance,项目名称:angular2,代码行数:5,代码来源:main.ts


示例3: enableProdMode

import { bootstrap }    from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppComponent } from './app.component';

enableProdMode();

/* THIS IS PART OF THE NEW ANGULAR2 FORMS. IT WON'T BE NECESSARY ONCE THE DEPRECATION PROCESS IS FINISHED */
import { disableDeprecatedForms, provideForms } from '@angular/forms';

bootstrap(AppComponent, [ disableDeprecatedForms(),
    provideForms()
]);
开发者ID:PEsteves8,项目名称:dayselector,代码行数:12,代码来源:main.ts


示例4: bootstrap

import { bootstrap }    from '@angular/platform-browser-dynamic';

import { AppComponent } from './app.component';
import { ROUTER_PROVIDERS } from '@angular/router-deprecated';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { HTTP_PROVIDERS } from '@angular/http';

bootstrap(AppComponent, [HTTP_PROVIDERS, ROUTER_PROVIDERS, disableDeprecatedForms(), provideForms()]);
开发者ID:duyleomessi,项目名称:angular_hamedani,代码行数:8,代码来源:main.ts


示例5: enableProdMode

	if(UI[key]) {
		platformDirectives.push(UI[key]);
	}
}

import {PlatformUI, DomUI} from 'backlive/utility/ui';
import {AppExceptionHandler} from 'backlive/utility';

declare var WEB_CONFIG:any;
if(!WEB_CONFIG.Development) {
    enableProdMode();
}

import {AppComponent} from './component/app.component';

bootstrap(AppComponent, serviceBootstrap.concat([APP_ROUTER_PROVIDERS, HTTP_PROVIDERS, Title, provide(APP_BASE_HREF, {useValue: WEB_CONFIG.SiteUrl}), disableDeprecatedForms(), provideForms(),
    provide(PlatformUI, {useClass: DomUI}), provide(PLATFORM_DIRECTIVES, {useValue: platformDirectives, multi:true})/*provide(CompilerConfig, {useValue: new CompilerConfig({ platformDirectives: platformDirectives, platformPipes: platformPipes })})*/, 
    provide(ExceptionHandler, {useClass: AppExceptionHandler})]))
    .catch(err => console.error(err));

//platform([WORKER_APP_PLATFORM]).application([WORKER_APP_APPLICATION, WORKER_APP_ROUTER, provide(APP_BASE_HREF, { useValue: '/' })]).bootstrap(AppComponent, []);
/*platform(WORKER_APP_PLATFORM).asyncApplication(() => Promise.resolve([
    WORKER_APP_APPLICATION,
    WORKER_APP_ROUTER,
    provide(APP_BASE_HREF, { useValue: '/' }),
    provide(PLATFORM_DIRECTIVES, {useValue: platformDirectives, multi:true})
]))
.then((appRef: ApplicationRef) => {
    return appRef.bootstrap(AppComponent, serviceBootstrap.concat([HTTP_PROVIDERS]));
})
.then((compRef: ComponentRef) => {
开发者ID:urazovm,项目名称:backlive2.0,代码行数:31,代码来源:bootstrap.ts


示例6: beforeEach

 beforeEach(() => addProviders([
   disableDeprecatedForms(),
   provideForms(),
   RioForm
 ]));
开发者ID:DavyDuDu,项目名称:angular2-redux-starter,代码行数:5,代码来源:form.test.ts


示例7: require

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

import {
  LocationStrategy,
  HashLocationStrategy,
  APP_BASE_HREF} from '@angular/common';

var routes = require('./scripts/routes');
var app = require('./scripts/components/app');

//
// Bootstrap
//
enableProdMode();
bootstrap(app.AppComponent, [
   routes.appRouterProviders,
   disableDeprecatedForms(), provideForms(),
   provide(LocationStrategy, { useClass: HashLocationStrategy }),
   provide(APP_BASE_HREF, { useValue: '/' })
]);
开发者ID:jgillick,项目名称:DiscoDanceFloor,代码行数:22,代码来源:main.ts


示例8: bootstrap

//external modules
import { bootstrap }    from '@angular/platform-browser-dynamic';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { Logger } from 'angular2-logger/core';

//internal modules
import { AppComponent } from './app.component';
import { APP_ROUTER_PROVIDERS } from './app.routes';

bootstrap(AppComponent, [
    Logger, //logging service
    APP_ROUTER_PROVIDERS,   //tanımlanmış route'ları register ediyoruz
    disableDeprecatedForms(),   //eski form handler, yeni versiyon geçildiğinde kaldırılabilir
    provideForms()  //yeni form provider
])
    .then((msg: any) => console.debug('Application Loaded'))
    .catch((err: any) => console.error('[Application Load Error] ' + err));
开发者ID:ozbilgehan,项目名称:Angular2,代码行数:17,代码来源:main.ts


示例9: bootstrap

// main.ts
import { bootstrap } from '@angular/platform-browser-dynamic';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { HTTP_PROVIDERS } from '@angular/http';
import { ROUTER_DIRECTIVES } from '@angular/router';
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
import { TalkService } from "./talkService";



import { TalksComponent } from './TalksComponent';
import { talkRoutes } from './routes';

bootstrap(TalksComponent, [disableDeprecatedForms(),
  provideForms(),
  TalkService,
  HTTP_PROVIDERS,
  ROUTER_DIRECTIVES,
  talkRoutes,
  { provide: LocationStrategy, useClass: HashLocationStrategy }
  ]);
开发者ID:samdubey,项目名称:CoreCodeCamp,代码行数:21,代码来源:main.ts


示例10: bootstrap

import { bootstrap }    from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import {ROUTER_BINDINGS} from '@angular/router-deprecated';
import { disableDeprecatedForms, provideForms } from '@angular/forms';

bootstrap(AppComponent, [ROUTER_BINDINGS, disableDeprecatedForms(), provideForms()])
    .catch(err => console.log(err));
开发者ID:Arthurisme,项目名称:TimeMachineAlpha,代码行数:7,代码来源:main.ts



注:本文中的@angular/forms.disableDeprecatedForms函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript forms.provideForms函数代码示例发布时间:2022-05-28
下一篇:
TypeScript core.MockMatchMedia类代码示例发布时间:2022-05-28
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap