question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a shorthand for starting Angular 2 apps

See original GitHub issue

Related to https://github.com/NativeScript/nativescript-cli/issues/1498.

As we talk about Angular 2 more I think it’s important that we optimize the getting started experience as much as possible. With that in mind I’d like to propose that we create a --ng flag for tns create that acts as a shorthand for tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng.

So tns create my-next-great-angular-project --ng. Thoughts?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
vchimevcommented, Mar 24, 2016

With the shorthand implementation of:

tns create my-next-great-angular-project --template angular

and

tns create my-next-great-angular-project --ng

I think it makes sense to support also

tns create my-next-great-typescript-project --tsc

for

tns create my-next-great-typescript-project --template typescript

This will keep the command options consistent as well.

What do you think?

0reactions
vchimevcommented, Mar 28, 2016

Moved my suggestion to a separate issue: https://github.com/NativeScript/nativescript-cli/issues/1650.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular coding style guide
Looking for an opinionated guide to Angular syntax, conventions, and application structure? Step right in. This style guide presents preferred conventions ...
Read more >
DIY Keyboard Shortcuts in Your Angular Application
We'll do so by registering a new shortcut, shift + ? , that opens the modal, and provide the consumer with the option...
Read more >
Add Keyboard Shortcuts to Your Angular App - Level Up Coding
Keyboard shortcut handling can easily be added to Angular apps with the angular2-hotkeys library. In this article, we will write a diet ...
Read more >
Angular hotkeys (we all love shortcuts!) - DEV Community ‍ ‍
Let's review how to implement hotkeys (shortcuts) on Angular apps. On this post, we will use a library called angular2-hotkeys.
Read more >
Getting Past Hello World in Angular 2 - SitePoint
In an Angular 2 application, we need to tell Angular when to start up. This is done using the bootstrap method, passing in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found