0

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?

0

Angular 2's tutorial basically just shows the quickest and easiest way to get up and running with the framework. It omits mentioning things that could scare away a potential newcomer to the ecosystem, it is meant to be simple.

angular-cli on the other hand actively incorporates best practices, latest technologies like Webpack 2 Beta and tries to give developers a piece of software to quickly scaffold and develop scalable production apps without worrying about build-tools and configuration.

|improve this answer|||||
0

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.