mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
feat(navigation): @DeepLink decorator
@DeepLink decorator
This commit is contained in:
@ -272,7 +272,7 @@ export { DeepLinker } from './navigation/deep-linker';
|
|||||||
export { NavController } from './navigation/nav-controller';
|
export { NavController } from './navigation/nav-controller';
|
||||||
export { NavControllerBase } from './navigation/nav-controller-base';
|
export { NavControllerBase } from './navigation/nav-controller-base';
|
||||||
export { NavParams } from './navigation/nav-params';
|
export { NavParams } from './navigation/nav-params';
|
||||||
export { NavLink, NavOptions, DeepLink, DeepLinkConfig, DeepLinkMetadata, DeepLinkMetadataType } from './navigation/nav-util';
|
export { NavLink, NavOptions, DeepLink, DeepLinkConfig, DeepLinkMetadata, DeepLinkMetadataFactory, DeepLinkMetadataType } from './navigation/nav-util';
|
||||||
export { UrlSerializer, DeepLinkConfigToken } from './navigation/url-serializer';
|
export { UrlSerializer, DeepLinkConfigToken } from './navigation/url-serializer';
|
||||||
export { ViewController } from './navigation/view-controller';
|
export { ViewController } from './navigation/view-controller';
|
||||||
export { ActionSheetCmp } from './components/action-sheet/action-sheet-component';
|
export { ActionSheetCmp } from './components/action-sheet/action-sheet-component';
|
||||||
|
@ -101,6 +101,12 @@ export function isNav(nav: any): boolean {
|
|||||||
return !!nav && !!nav.push;
|
return !!nav && !!nav.push;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function DeepLink(config: DeepLinkMetadataType) {
|
||||||
|
return function(cls: any) {
|
||||||
|
return cls;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// public link interface
|
// public link interface
|
||||||
export interface DeepLinkMetadataType {
|
export interface DeepLinkMetadataType {
|
||||||
name?: string;
|
name?: string;
|
||||||
@ -130,7 +136,7 @@ export interface DeepLinkMetadataFactory {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
export var DeepLink: DeepLinkMetadataFactory;
|
export var DeepLinkMetadataFactory: DeepLinkMetadataFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
Reference in New Issue
Block a user