Search code examples
angularjsangulardirectory-structureangular-cli

AngularJS 2.1.0 official scaffold & style?


Google knows best… but they're inconsistent!

The official ng CLI generates a scaffold one way, whereas the official tutorial chooses a different way.

I'm not talking just directory layout, typings.json vs types in package.json choices are also particularly worrisome.

What style am I meant to work with?


Solution

  • QuickStart

    This is not the perfect arrangement for your application. It is not designed for production. It exists primarily to get you started quickly with learning and prototyping in Angular

    angular-cli

    The Angular2 CLI makes it easy to create an application that already works, right out of the box. It already follows our best practices!


    See also: https://angular.io/styleguide