feat(forms): update forms to latest version

This commit is contained in:
nixa 2016-07-08 13:10:36 +03:00
parent 5981758416
commit ffae8cd248
10 changed files with 47 additions and 38 deletions

View file

@ -10,15 +10,20 @@ import {HTTP_PROVIDERS} from '@angular/http';
// Angular 2 Router
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
// Angular 2 forms
import {disableDeprecatedForms, provideForms} from '@angular/forms';
/*
* Application Providers/Directives/Pipes
* providers/directives/pipes that only live in our browser environment
*/
* Application Providers/Directives/Pipes
* providers/directives/pipes that only live in our browser environment
*/
export const APPLICATION_PROVIDERS = [
...FORM_PROVIDERS,
// new Angular 2 forms
disableDeprecatedForms(),
provideForms(),
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS,
{provide: LocationStrategy, useClass: HashLocationStrategy }
{provide: LocationStrategy, useClass: HashLocationStrategy}
];
export const PROVIDERS = [