- Add
angular.json
to the project root, with the following content
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"cli": {
"defaultCollection": "@nativescript/schematics"
},
"projects": {
"my-project-name": {
"root": "",
"sourceRoot": ".",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
}
}
},
"defaultProject": "my-project-name"
}
You can update my-project-name
to the actual name of your project, but that is not absolutely necessary.
- Install Angular CLI
npm i --save-dev @angular/cli
- Install NativeScript Schematics
npm i --save-dev @nativescript/schematics