Closed sahat closed 10 years ago
There is no need to add templates
as a dependency unless you use the standalone
option (use this if you want to create a new angular module for the templates).
Just remove the dependency when you create the MyApp
module and it should work fine.
Thanks. I solved the problem by including templates.js
in my index.html.
<script src="scripts/app.js"></script>
<script src="scripts/templates.js"></script>
<script src="scripts/controllers/main.js"></script>
<script src="scripts/directives/markdown.js"></script>
<script src="scripts/directives/scroll.js"></script>
<script src="scripts/services/posts.js"></script>
<script src="scripts/services/github.js"></script>
I followed the documentation to include
templates.js
in my app module:templates.js
I tried including it manually by placing it inside
.run
, it works, so there is nothing wrong with the templates.js.I am getting this error which is probably because I am doing something wrong with Angular module system:
Gulp Task