r/angularjs • • May 25 '16

Some complaints about angular2/angular-cli

https://gist.github.com/NullVoxPopuli/82ee489121fcc21a0e80aaf88559dada
9 Upvotes

29 comments sorted by

View all comments

18

u/brokentyro May 25 '16

Typescript

You don't have to use Typescript.

no recommended project structure

https://angular.io/styleguide

no default templating language

How about HTML? I would be extremely unhappy if the forced something like Jade on me by default.

6

u/gonzofish May 25 '16

Also, why does everyone think they have to inline their templates? You can do templateUrl...

3

u/eguanlao May 25 '16

TemplateUrls make another call to the server, right?

1

u/gonzofish May 26 '16

The way I use it the templates are part of my js file.

1

u/[deleted] May 27 '16

What url do you provide to templateUrl if the template is in the same file?

1

u/gonzofish May 27 '16

What I mean is that when I package my app the template gets inlined.

1

u/[deleted] May 27 '16

So you don't use templateUrl after all?

1

u/gonzofish May 27 '16

No but I'm using webpack to keep my templates external.