Closed sattha closed 7 years ago
Sure, add moduleId: module.id
to the component's metadata :)
TLDR;
The module id is used to keep track of where the component was located when resolving the relative paths to its template/stylesheet. You can read more about where the value of module.id
comes from here: http://wiki.commonjs.org/wiki/Modules/1.1.
Thank you, for your feedback, it's work now.
Actually this...
@Component({ selector: "list", templateUrl: "pages/list/list.html", styleUrls: ["pages/list/list-common.css", "pages/list/list.css"], providers: [GroceryListService] })
Should be and Can be this...
@Component({ selector: "list", templateUrl: "list.html", styleUrls: ["list-common.css", "list.css"], providers: [GroceryListService] })
So IDE like PHPStorm can jump to file when I press command+b on Mac. This is the things that I always do in Angular project. Is it possible for NativeScript to understand the relative path ?