mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Fix the master-detail template app
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import application = require("application");
|
import application = require("application");
|
||||||
application.mainModule = "app/main-page";
|
application.mainModule = "main-page";
|
||||||
|
|
||||||
// Remove this in the AppBuilder templates
|
// Remove this in the AppBuilder templates
|
||||||
application.cssFile = "app/template-master-detail/app.css"
|
application.cssFile = "app.css"
|
||||||
|
|
||||||
application.start();
|
application.start();
|
||||||
|
@ -16,7 +16,7 @@ export function pageLoaded(args: observable.EventData) {
|
|||||||
export function listViewItemTap(args: listView.ItemEventData) {
|
export function listViewItemTap(args: listView.ItemEventData) {
|
||||||
// Navigate to the details page with context set to the current data item
|
// Navigate to the details page with context set to the current data item
|
||||||
if (!twoPaneLayout) {
|
if (!twoPaneLayout) {
|
||||||
frames.topmost().navigate("app/details-page");
|
frames.topmost().navigate("details-page");
|
||||||
}
|
}
|
||||||
|
|
||||||
vmModule.mainViewModel.set("selectedItem", args.view.bindingContext);
|
vmModule.mainViewModel.set("selectedItem", args.view.bindingContext);
|
||||||
|
Reference in New Issue
Block a user