mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Make the new bindingContext parameter optional.
This commit is contained in:
@ -200,7 +200,7 @@ export class Page extends ContentView implements dts.Page {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext: any) {
|
public onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any) {
|
||||||
this._navigationContext = context;
|
this._navigationContext = context;
|
||||||
|
|
||||||
//https://github.com/NativeScript/NativeScript/issues/731
|
//https://github.com/NativeScript/NativeScript/issues/731
|
||||||
|
4
tns-core-modules/ui/page/page.d.ts
vendored
4
tns-core-modules/ui/page/page.d.ts
vendored
@ -227,9 +227,9 @@ declare module "ui/page" {
|
|||||||
* A method called before navigating to the page.
|
* A method called before navigating to the page.
|
||||||
* @param context - The data passed to the page through the NavigationEntry.context property.
|
* @param context - The data passed to the page through the NavigationEntry.context property.
|
||||||
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
|
* @param isBackNavigation - True if the Page is being navigated from using the Frame.goBack() method, false otherwise.
|
||||||
* @param bindingContext - An object to become the binding context of the page navigating to.
|
* @param bindingContext - An object to become the binding context of the page navigating to. Optional.
|
||||||
*/
|
*/
|
||||||
onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext: any): void;
|
onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A method called after navigated to the page.
|
* A method called after navigated to the page.
|
||||||
|
Reference in New Issue
Block a user