Writings about one coder's stories & experiences.
Today I couldn't figure out why my <ng-include> tags were not working. It didn't give me an error. It would just fail silently. I was putting it in just single quotes when really the files path should be wrapped in both single quotes and double quotes. So the correct way would be like this:
test.html can be any snippet of html, and can refer to the controller containing this ng-include tag by it's Controller as value. Ng-include is a simple way of breaking up html. If you want to assign your html snippet it's own controller, consider making it a custom directive instead.
The posts on this site are written and maintained by Jim Lynch. About Jim...
Want FREE access to
my daily stock tips
Sign up here:
- Triple Gainers
- Rippers N' Dippers
- Growingest Growers