2 ms·
I've only briefly tried Angular 2 so I accept I may be wrong about this, but it feels like there's too much friction required to add a new component which disco
by seanwilson 10y ago
I've only briefly tried Angular 2 so I accept I may be wrong about this, but it feels like there's too much friction required to add a new component which discourages me from doing so. It feels like you have to create too many files and add too many lines here and there to connect everything up each time. Having reusable components is great but trying to make everything reusable when it probably won't be reusable (i.e. you have to specify all the dependencies) can slow you down. I'll still likely use it though given the improvements over Angular 1 and because of the use of TypeScript.
- resonantjacket5 10y agoAre you using the angular cli generator? It's pretty tedious creating components without it. Plus as you mentioned if you create a base component than the derived component's don't need the declare some dependencies again.
- level 10y agoModules in RC5 mostly fixed that. You still define all the dependencies and directives, but they're all packaged into a module file, and then you can use use any components by dropping them into your template. Getting something like an Angular 2 snippet tool will also speed you up a bit.[1] [1] https://atom.io/packages/angular-2-typescript-snippets https://atom.io/packages/angular-2-typescript-snippets