mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
This commit is contained in:
committed by
Hristo Deshev
parent
dfb4e031a6
commit
629eb6e683
@@ -1,6 +1,6 @@
|
||||
import * as observable from "data/observable";
|
||||
import * as view from "ui/core/view";
|
||||
import * as label from "ui/label";
|
||||
import * as observable from "tns-core-modules/data/observable";
|
||||
import * as view from "tns-core-modules/ui/core/view";
|
||||
import * as label from "tns-core-modules/ui/label";
|
||||
|
||||
var count = 0;
|
||||
export function buttonTap2(args: observable.EventData) {
|
||||
@@ -13,4 +13,4 @@ export function buttonTap2(args: observable.EventData) {
|
||||
lbl.text = "You clicked " + count + " times!";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Label} from "ui/label";
|
||||
import {Observable} from "data/observable";
|
||||
import {Page} from "ui/page";
|
||||
import {Label} from "tns-core-modules/ui/label";
|
||||
import {Observable} from "tns-core-modules/data/observable";
|
||||
import {Page} from "tns-core-modules/ui/page";
|
||||
|
||||
export function loaded(args) {
|
||||
(<Observable>(<Label>args.object).page.bindingContext).set("testPassed", true);
|
||||
@@ -8,4 +8,4 @@ export function loaded(args) {
|
||||
|
||||
export function onNavigatingTo(args) {
|
||||
(<Page>args.object).bindingContext = args.context;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user