Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Generated directives should default to templateUrl and give html file in appropriate location #829

Closed
JaKXz opened this issue Aug 26, 2014 · 1 comment

Comments

@JaKXz
Copy link

JaKXz commented Aug 26, 2014

Noticed using generator version 0.9.5. From the Angular Docs:

Best Practice: Unless your template is very small, it's typically better to break it apart into its own HTML file and load it with the templateUrl option.

The location of the html file can be discussed, my assumption for now is to put it in the app/views/directives/ folder.

@eddiemonge
Copy link
Member

The template is very small, <div></div>, 11 characters small. You can break it out into its own file if you want. When #277 lands then it'll be close to the same thing anyway.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants