chore(): fixing up the angular demo

This commit is contained in:
Dan Bucholtz
2018-02-06 00:50:34 -06:00
parent 73ce15f7da
commit 5058117110
74 changed files with 25828 additions and 147 deletions

View File

@ -0,0 +1,7 @@
{
"name": "@angular/router/upgrade",
"typings": "./upgrade.d.ts",
"main": "../bundles/router-upgrade.umd.js",
"module": "../esm5/upgrade.js",
"es2015": "../esm2015/upgrade.js"
}

View File

@ -0,0 +1,13 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of this package.
*/
export * from './src/upgrade';

View File

@ -0,0 +1,47 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ComponentRef, InjectionToken } from '@angular/core';
import { UpgradeModule } from '@angular/upgrade/static';
/**
* @whatItDoes Creates an initializer that in addition to setting up the Angular
* router sets up the ngRoute integration.
*
* @howToUse
*
* ```
* @NgModule({
* imports: [
* RouterModule.forRoot(SOME_ROUTES),
* UpgradeModule
* ],
* providers: [
* RouterUpgradeInitializer
* ]
* })
* export class AppModule {
* ngDoBootstrap() {}
* }
* ```
*
* @experimental
*/
export declare const RouterUpgradeInitializer: {
provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
multi: boolean;
useFactory: (ngUpgrade: UpgradeModule) => () => void;
deps: (typeof UpgradeModule)[];
};
/**
* @whatItDoes Sets up a location synchronization.
*
* History.pushState does not fire onPopState, so the Angular location
* doesn't detect it. The workaround is to attach a location change listener
*
* @experimental
*/
export declare function setUpLocationSync(ngUpgrade: UpgradeModule): void;

View File

@ -0,0 +1,4 @@
/**
* Generated bundle index. Do not edit.
*/
export * from './public_api';

View File

@ -0,0 +1 @@
{"__symbolic":"module","version":4,"metadata":{"RouterUpgradeInitializer":{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_BOOTSTRAP_LISTENER","line":38,"character":11},"multi":true,"useFactory":{"__symbolic":"reference","name":"locationSyncBootstrapListener"},"deps":[{"__symbolic":"reference","module":"@angular/upgrade/static","name":"UpgradeModule","line":41,"character":9}]},"locationSyncBootstrapListener":{"__symbolic":"function","parameters":["ngUpgrade"],"value":{"__symbolic":"error","message":"Lambda not supported","line":48,"character":9,"module":"./src/upgrade"}},"setUpLocationSync":{"__symbolic":"function"}},"origins":{"RouterUpgradeInitializer":"./src/upgrade","locationSyncBootstrapListener":"./src/upgrade","setUpLocationSync":"./src/upgrade"},"importAs":"@angular/router/upgrade"}