2 ms·
Angular 1.x yields pretty well to ES6 (classes and so forth) which can have your angular 1.x project looking similar to 2.x, at least for controller definitions
by ben_jones 10y ago
Angular 1.x yields pretty well to ES6 (classes and so forth) which can have your angular 1.x project looking similar to 2.x, at least for controller definitions. This is a good example [1] and the somewhat equivalent ng2 example (with extraneous TS stuff) [2]. Both those projects are also good examples of Angular1/2 conventions like having an imports folder, api/ui separation of concernts, and so forth.
[1]: https://github.com/Urigo/meteor-angular-socially/blob/step_16/imports/ui/components/partiesList/partiesList.js https://github.com/Urigo/meteor-angular-socially/blob/step_1...
[2]: https://github.com/Urigo/meteor-angular2.0-socially/blob/step_16/client/imports/app/parties/parties-list.component.ts https://github.com/Urigo/meteor-angular2.0-socially/blob/ste...
IMO neither of those examples are good benchmarks for Angular 1 or 2 because they have boilerplate for interop with MeteorJS. Plain Angular2 is much cleaner FWIW.