mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): fixing up the angular demo
This commit is contained in:
@ -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"
|
||||
}
|
13
packages/demos/angular/scripts/router/upgrade/public_api.d.ts
vendored
Normal file
13
packages/demos/angular/scripts/router/upgrade/public_api.d.ts
vendored
Normal 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';
|
47
packages/demos/angular/scripts/router/upgrade/src/upgrade.d.ts
vendored
Normal file
47
packages/demos/angular/scripts/router/upgrade/src/upgrade.d.ts
vendored
Normal 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;
|
4
packages/demos/angular/scripts/router/upgrade/upgrade.d.ts
vendored
Normal file
4
packages/demos/angular/scripts/router/upgrade/upgrade.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/**
|
||||
* Generated bundle index. Do not edit.
|
||||
*/
|
||||
export * from './public_api';
|
@ -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"}
|
Reference in New Issue
Block a user