Skip to content

🔧 Angular CLI for Nativescript. Generates component for Nativescript Angular projects

License

Notifications You must be signed in to change notification settings

yezarela/tns-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tns Ng

npm version

Angular CLI for Nativescript. Generates component for Nativescript Angular projects

Table of Contents

Installation

npm install -g tns-ng

Usage

tng --help

Generating Components and Services

tng generate|g [type] [name] 

You can use the tng generate (or just tng g) command to generate Nativescript Angular components:

tng generate component my-component
tng g component my-component # using the alias

# components support relative path generation
# if in the directory app/feature/ and you run
tng g component my-component
# your component will be generated in app/feature/my-component
# but if you were to run
tng g component feature/my-component
# your component will be generated in app/feature/my-component

# This will create four files:
__my-component__/__my-component__.component.html
__my-component__/__my-component__.component.ts
__my-component__/__my-component__.component.android.css
__my-component__/__my-component__.component.ios.css

You can find all possible types in the table below:

Scaffold Usage
Component tng g component my-component
Service tng g service my-service

Contributing

Just fork and pull request :D

About

🔧 Angular CLI for Nativescript. Generates component for Nativescript Angular projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published