-
-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Labels
Description
Hi I have been trying to split my app up into templates. I have a component like below
import {Component} from "@angular/core";
@Component({
moduleId: module.id,
selector: "home",
templateUrl: 'home.html'
})
export class HomeComponent {}
This component is in /app/home/home.component.ts
And template is here /app/home/home.html
However when i run this i get the error
JS: EXCEPTION: Error: File /data/data/org.nativescript.groceries/files/app/home/home.html does not exist. Resolved from: /data/data/org.nativescript.groceries/files/app/home/home.html
Package.json
{
"name": "Groceries",
"version": "1.0.0",
"description": "A NativeScript-built iOS and Android app for managing grocery lists",
"repository": {
"type": "git",
"url": "https://github.com/nativescript/sample-Groceries.git"
},
"keywords": [
"NativeScript"
],
"author": "TJ VanToll <tj.vantoll@gmail.com> (http://tjvantoll.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/nativescript/sample-Groceries/issues"
},
"homepage": "https://github.com/nativescript/sample-Groceries/groceries",
"nativescript": {
"id": "org.nativescript.groceries",
"tns-ios": {
"version": "2.1.0"
},
"tns-android": {
"version": "2.1.1"
}
},
"dependencies": {
"@angular/common": "2.0.0-rc.3",
"@angular/compiler": "2.0.0-rc.3",
"@angular/core": "2.0.0-rc.3",
"@angular/http": "2.0.0-rc.3",
"@angular/platform-browser": "2.0.0-rc.3",
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
"@angular/platform-server": "2.0.0-rc.3",
"@angular/router": "3.0.0-alpha.7",
"nativescript-angular": "0.2.0",
"tns-core-modules": "2.1.0"
},
"devDependencies": {
"babel-traverse": "6.7.6",
"babel-types": "6.7.7",
"babylon": "6.7.0",
"filewalker": "0.1.2",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "^1.8.10"
},
"scripts": {
"android": "tns run android --emulator --device=android",
"hot:android": "tns livesync android --emulator --watch"
}
}