Upgrade Demo App to angular 2.0.0-rc.1

This commit is contained in:
Denys Vuika
2016-06-14 12:06:29 +01:00
parent a81378bcda
commit bcff692a7b
15 changed files with 98 additions and 77 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
import {
ALFRESCO_DATATABLE_DIRECTIVES,
ObjectDataTableAdapter,

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
import {
DOCUMENT_LIST_DIRECTIVES,
DOCUMENT_LIST_PROVIDERS,

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
import { AlfrescoLoginComponent } from 'ng2-alfresco-login/dist/ng2-alfresco-login';
declare let __moduleName: string;

View File

@@ -15,8 +15,9 @@
* limitations under the License.
*/
import { ElementRef, DynamicComponentLoader, Directive, Attribute } from 'angular2/core';
import { Router, RouterOutlet, ComponentInstruction } from 'angular2/router';
/*
import { ElementRef, DynamicComponentLoader, Directive, Attribute } from '@angular/core';
import { Router, RouterOutlet, ComponentInstruction } from '@angular/router-deprecated';
import { AlfrescoAuthenticationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
@Directive({selector: 'auth-router-outlet'})
@@ -49,3 +50,4 @@ export class AuthRouterOutlet extends RouterOutlet {
|| this.authentication.isLoggedIn();
}
}
*/

View File

@@ -15,8 +15,8 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Router } from 'angular2/router';
import { Component } from '@angular/core';
import { Router } from '@angular/router-deprecated';
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search/dist/ng2-alfresco-search';
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer/dist/ng2-alfresco-viewer';
import {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component } from 'angular2/core';
import { Component } from '@angular/core';
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search/dist/ng2-alfresco-search';
declare let __moduleName: string;

View File

@@ -15,8 +15,9 @@
* limitations under the License.
*/
import { Injectable } from 'angular2/core';
import { Http, Headers, RequestOptions, Response } from 'angular2/http';
import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions, Response } from '@angular/http';
// import { Observable } from 'rxjs/Rx';
@Injectable()
export class ActivitiService {

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, OnInit } from 'angular2/core';
import { Component, OnInit } from '@angular/core';
import { ActivitiService } from './activiti.service';
import {
ALFRESCO_DATATABLE_DIRECTIVES,