style(lint): re-format modules/@angular
This commit is contained in:
@ -1,12 +1,7 @@
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {Component, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {
|
||||
CanActivate,
|
||||
RouteConfig,
|
||||
ComponentInstruction,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {CanActivate, ComponentInstruction, ROUTER_DIRECTIVES, RouteConfig} from '@angular/router-deprecated';
|
||||
|
||||
function checkIfWeHavePermission(instruction: ComponentInstruction) {
|
||||
return instruction.params['id'] == '1';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {verifyNoBrowserErrors, browser} from '@angular/platform-browser/testing_e2e';
|
||||
import {expect} from '@angular/core/testing';
|
||||
import {browser, verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector: string) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
|
@ -1,13 +1,8 @@
|
||||
import {provide, Component, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {
|
||||
CanDeactivate,
|
||||
RouteConfig,
|
||||
RouteParams,
|
||||
ComponentInstruction,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {Component, ComponentRef, provide} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {CanDeactivate, ComponentInstruction, ROUTER_DIRECTIVES, RouteConfig, RouteParams} from '@angular/router-deprecated';
|
||||
|
||||
|
||||
// #docregion routerCanDeactivate
|
||||
@Component({
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {verifyNoBrowserErrors, browser} from '@angular/platform-browser/testing_e2e';
|
||||
import {expect} from '@angular/core/testing';
|
||||
import {browser, verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector: string) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
|
@ -1,12 +1,8 @@
|
||||
import {Component, provide, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {
|
||||
OnActivate,
|
||||
ComponentInstruction,
|
||||
RouteConfig,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {Component, ComponentRef, provide} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {ComponentInstruction, OnActivate, ROUTER_DIRECTIVES, RouteConfig} from '@angular/router-deprecated';
|
||||
|
||||
|
||||
// #docregion routerOnActivate
|
||||
@Component({template: `Child`})
|
||||
|
@ -1,12 +1,7 @@
|
||||
import {Component, Injectable, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {
|
||||
OnDeactivate,
|
||||
ComponentInstruction,
|
||||
RouteConfig,
|
||||
ROUTER_DIRECTIVES
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {Component, ComponentRef, Injectable} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {ComponentInstruction, OnDeactivate, ROUTER_DIRECTIVES, RouteConfig} from '@angular/router-deprecated';
|
||||
|
||||
|
||||
@Injectable()
|
||||
@ -57,7 +52,6 @@ export class AppCmp {
|
||||
|
||||
export function main(): Promise<ComponentRef<AppCmp>> {
|
||||
return bootstrap(AppCmp, [
|
||||
{provide: APP_BASE_HREF, useValue: '/@angular/examples/router/ts/on_deactivate'},
|
||||
LogService
|
||||
{provide: APP_BASE_HREF, useValue: '/@angular/examples/router/ts/on_deactivate'}, LogService
|
||||
]);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {verifyNoBrowserErrors, browser} from '@angular/platform-browser/testing_e2e';
|
||||
import {expect} from '@angular/core/testing';
|
||||
import {browser, verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector: string) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
|
@ -1,14 +1,8 @@
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {Component, ComponentRef} from '@angular/core';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {
|
||||
RouteConfig,
|
||||
ComponentInstruction,
|
||||
ROUTER_DIRECTIVES,
|
||||
CanReuse,
|
||||
RouteParams,
|
||||
OnReuse
|
||||
} from '@angular/router-deprecated';
|
||||
import {APP_BASE_HREF} from '@angular/common';
|
||||
import {CanReuse, ComponentInstruction, OnReuse, ROUTER_DIRECTIVES, RouteConfig, RouteParams} from '@angular/router-deprecated';
|
||||
|
||||
|
||||
|
||||
// #docregion reuseCmp
|
||||
@ -52,6 +46,6 @@ export class AppCmp {
|
||||
|
||||
|
||||
export function main(): Promise<ComponentRef<AppCmp>> {
|
||||
return bootstrap(AppCmp,
|
||||
[{provide: APP_BASE_HREF, useValue: '/@angular/examples/router/ts/reuse'}]);
|
||||
return bootstrap(
|
||||
AppCmp, [{provide: APP_BASE_HREF, useValue: '/@angular/examples/router/ts/reuse'}]);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {verifyNoBrowserErrors, browser} from '@angular/platform-browser/testing_e2e';
|
||||
import {expect} from '@angular/core/testing';
|
||||
import {browser, verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector: string) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
|
Reference in New Issue
Block a user