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