angular updated to rc1

This commit is contained in:
nixa 2016-05-11 17:38:01 +03:00
parent 61d86e7e3d
commit 0dfcf86787
53 changed files with 145 additions and 121 deletions

View file

@ -2,18 +2,13 @@
* These are globally available services in any component or any other service
*/
import {provide} from 'angular2/core';
// Angular 2
import {FORM_PROVIDERS} from 'angular2/common';
import {FORM_PROVIDERS, LocationStrategy, HashLocationStrategy} from '@angular/common';
// Angular 2 Http
import {HTTP_PROVIDERS} from 'angular2/http';
import {HTTP_PROVIDERS} from '@angular/http';
// Angular 2 Router
import {ROUTER_PROVIDERS} from 'angular2/router';
import {LocationStrategy, PathLocationStrategy} from 'angular2/platform/common'
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
/*
* Application Providers/Directives/Pipes
@ -23,7 +18,7 @@ export const APPLICATION_PROVIDERS = [
...FORM_PROVIDERS,
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS,
provide(LocationStrategy, { useClass: PathLocationStrategy })
{provide: LocationStrategy, useClass: HashLocationStrategy }
];
export const PROVIDERS = [