@nativescript-dom/angular-types
Typescript definitions for @nativescript/angular that expose @nativescript/core views as DOM elements in HTML templates
npm i --save @nativescript-dom/angular-types
- Version: 1.0.8
- GitHub: https://github.com/nativescript-dom/types
- NPM: https://www.npmjs.com/package/%40nativescript-dom%2Fangular-types
- Downloads:
- Last Day: 2
- Last Week: 2
- Last Month: 31
angular-types
Typescript definitions for @nativescript/angular that expose @nativescript/core views as DOM elements in HTML templates and provide 100% complete intellisense in code editors
Installtion
- Install the
core
andangular
types in your project
npm install @nativescript-dom/core-types @nativescript-dom/angular-types --save-dev
- Configure
tsconfig.json
as below
{
"compilerOptions": {
...
"types": [
"node",
"@nativescript-dom/core-types",
"@nativescript-dom/angular-types"
],
...
}
Configure vscode
If you use vscode, configure .vscode/settings.json
.
Create a .vscode
folder inside the root of your project and add a settings.json
file with the following contents:
{
"html.customData": [
"./node_modules/@nativescript-dom/angular-types/metadata.json"
]
}
No extra steps are required for webstorm.
That's it, enjoy a fully typed @nativescript/angular experience.
MIT Licensed