mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-24 03:10:13 +01:00
angular updated to rc1
This commit is contained in:
parent
61d86e7e3d
commit
0dfcf86787
53 changed files with 145 additions and 121 deletions
|
|
@ -2,10 +2,10 @@
|
|||
* These are globally available directives in any template
|
||||
*/
|
||||
|
||||
import {provide, PLATFORM_DIRECTIVES} from 'angular2/core';
|
||||
import {PLATFORM_DIRECTIVES} from '@angular/core';
|
||||
|
||||
// Angular 2 Router
|
||||
import {ROUTER_DIRECTIVES} from 'angular2/router';
|
||||
import {ROUTER_DIRECTIVES} from '@angular/router-deprecated';
|
||||
|
||||
// application_directives: directives that are global through out the application
|
||||
export const APPLICATION_DIRECTIVES = [
|
||||
|
|
@ -13,5 +13,5 @@ export const APPLICATION_DIRECTIVES = [
|
|||
];
|
||||
|
||||
export const DIRECTIVES = [
|
||||
provide(PLATFORM_DIRECTIVES, { multi: true, useValue: APPLICATION_DIRECTIVES })
|
||||
{provide: PLATFORM_DIRECTIVES, multi: true, useValue: APPLICATION_DIRECTIVES }
|
||||
];
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* These are globally available pipes in any template
|
||||
*/
|
||||
|
||||
import {provide, PLATFORM_PIPES} from 'angular2/core';
|
||||
import {PLATFORM_PIPES} from '@angular/core';
|
||||
|
||||
// application_pipes: pipes that are global through out the application
|
||||
export const APPLICATION_PIPES = [
|
||||
|
|
@ -10,5 +10,5 @@ export const APPLICATION_PIPES = [
|
|||
];
|
||||
|
||||
export const PIPES = [
|
||||
provide(PLATFORM_PIPES, { multi: true, useValue: APPLICATION_PIPES })
|
||||
{provide: PLATFORM_PIPES, multi: true, useValue: APPLICATION_PIPES }
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue