當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript forms.provideForms函數代碼示例

本文整理匯總了TypeScript中@angular/forms.provideForms函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript provideForms函數的具體用法?TypeScript provideForms怎麽用?TypeScript provideForms使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了provideForms函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: beforeEach

 beforeEach(() => {
   TestBed.configureTestingModule({
     declarations: [TestComponent],
     providers: [disableDeprecatedForms(), provideForms()]
   });
 });
開發者ID:profoundhub,項目名稱:ng2expressheroku,代碼行數:6,代碼來源:about.component.spec.ts

示例2: beforeEach

 beforeEach(() => addProviders([
   disableDeprecatedForms(),
   provideForms(),
 ]));
開發者ID:Angular-Reference,項目名稱:angular2-app,代碼行數:4,代碼來源:validator.spec.ts

示例3: bootstrap

import {Component} from "@angular/core";
import {disableDeprecatedForms, provideForms} from "@angular/forms";
import {bootstrap} from "@angular/platform-browser-dynamic";
import { ROUTER_DIRECTIVES } from "@angular/router";

import {TabService} from "./services/Tab.Service";
import {BookService} from "./services/Book.Service";

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

@Component({
    selector: "app",
    templateUrl: "app/main.html",
    directives: [ROUTER_DIRECTIVES]
})
export class AppComponent { };

bootstrap(AppComponent, [disableDeprecatedForms(), provideForms(), TabService, BookService, appRouterProviders]).catch(err => console.log(err));
開發者ID:mulenatic,項目名稱:guitarCenter,代碼行數:18,代碼來源:main.ts

示例4: beforeEach

 beforeEach(() => { providerArr = [disableDeprecatedForms(), provideForms()]; });
開發者ID:dlwebdev,項目名稱:angular2-seed,代碼行數:1,代碼來源:manage.component.spec.ts

示例5: beforeEachProviders

 beforeEachProviders(() => [
     disableDeprecatedForms(),
     provideForms(),
     provide(DisqusService, { useClass: MockDisqusService })
 ]);
開發者ID:eutanazie,項目名稱:angular2-disqus,代碼行數:5,代碼來源:demo.component.spec.ts

示例6: bootstrap

import {GOOGLE_MAPS_PROVIDERS} from 'angular2-google-maps/core';
import {LoginSignupService} from './login-signup-component/loginSignup.service';
import { AuthGuard }   from './auth-guard-component/auth-guard.service';
import { bootstrap }    from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import {APP_ROUTER_PROVIDERS} from './app.router';
import { Http, HTTP_PROVIDERS, Response} from '@angular/http';
import {provideForms, disableDeprecatedForms} from '@angular/forms';
bootstrap(AppComponent, [disableDeprecatedForms(), provideForms(),APP_ROUTER_PROVIDERS, GOOGLE_MAPS_PROVIDERS, HTTP_PROVIDERS,AuthGuard,LoginSignupService]).catch(err => console.error(err));
開發者ID:huiyuejiao,項目名稱:Ecg,代碼行數:9,代碼來源:main.ts

示例7: bootstrap

import {bootstrap} from '@angular/platform-browser-dynamic';
import {HTTP_PROVIDERS} from '@angular/http';
import {provideForms} from '@angular/forms';
import {SeedApp} from './app/seed-app';
import {APP_ROUTER_PROVIDERS} from './app/main.routes';


bootstrap(SeedApp, [
    HTTP_PROVIDERS, APP_ROUTER_PROVIDERS, provideForms()
]).catch(err => console.error(err));
開發者ID:17shiooo,項目名稱:ng2-demo,代碼行數:10,代碼來源:main.ts

示例8: bootstrap

import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import { appRouterProviders } from './app.routes';
import { HTTP_PROVIDERS,BrowserXhr } from '@angular/http';
import { disableDeprecatedForms,provideForms } from '@angular/forms';
import { CustomBrowserXhr } from './tool/custom.browserxhr';

bootstrap(AppComponent,[appRouterProviders,HTTP_PROVIDERS,disableDeprecatedForms(),provideForms(),{provide:BrowserXhr,useClass:CustomBrowserXhr}]).catch((err:any)=>console.error(err));
開發者ID:OneChance,項目名稱:angular2,代碼行數:8,代碼來源:main.ts

示例9: 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

示例10: function

document.addEventListener("DOMContentLoaded", function(event) {
    bootstrap(App, [disableDeprecatedForms(), provideForms(), HTTP_PROVIDERS, 
				provide(LocationStrategy, {useClass: HashLocationStrategy})])
      .catch(err => console.error(err));
});
開發者ID:cashhoang,項目名稱:angular2,代碼行數:5,代碼來源:app.ts


注:本文中的@angular/forms.provideForms函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。