Do you know the right way to create your Angular project?
  v5.0 Posted at 20/12/2016 7:08 AM by Tiago Araujo
Angular.io​ is a great place to get started learning Angular 2, but do not use the tutorials as the template for your real apps!​​

The Quick Start  and Tour of Heros Tutorial will teach you lots about Angular 2 but are not examples of real world projects because:

  1. They do not include a method to create a production build output
    See Do you know the best build tool?
  2. They do not consider whether your application will require the redux pattern 
    See Do you know to use ngrx on complex applications?
  3. They do not include a UI framework
    See Do you know the best UI framework for Angular 2?

To learn how to build real-world Angular 2 applications check out FireBootCamp.

Figure: Bad Example - Using regular Angular tutorials
Figure: Good Example: The Angular CLI will create you a new Angular 2 project with a single command, and that project will be all setup with production build, unit testing and end to end testing all configured. If you have very specific build requirements the CLI does not currently support custom webpack builds, though this is coming. See https://rules.ssw.com.au/the-best-build-tool for more info

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:


    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.