Evan Burbidge
Evan Burbidge

Reputation: 867

Angular 1 With Typescript

I'm looking into creating an app with typescript and angular 1.6.0. But everywhere I look is using webpack, babel, grunt, gulp, there is no single consensus on which is the best way to proceed with an app like this.

Anyone got any hints?

Thank you.

Upvotes: 0

Views: 160

Answers (2)

anoop
anoop

Reputation: 3822

If you are planning to start from scratch, then why not Angular2 ?

My suggestion is Typescript2 + Angular2 with webpack. As stated by @Andy Angular-cli is good to go.

Upvotes: 0

Andy Francis
Andy Francis

Reputation: 60

Do you have a specific need for using angular 1.6.0? As opposed to creating an angular2 project?

You can get more information here: Angular-cli

Angular cli currently includes webpack and you will not need to use gulp or grunt at all. In addition to the angular cli bundling your app together it allows easy build for Ahead of Time Compilation and tree shaking. Having these two features is nice for when you are ready to deploy your application to a production server you can bundle the application into a small package and serve a small amount of JS files.

Using the angular cli also helps you to code with best practices within an angular2 application. You generate new components/directives/pipes with a simple ng generate [component] [name] command.

I would strongly suggest reading through the angular quickstart for ts guide located here: Angular-Quickstart

Also, if you do not want to generate your own projects using the angular-cli. There are various templates online that you can start your application with.

Good luck!

Upvotes: 1

Related Questions