Hello again and welcome to another Angular.JS video. This time I talk briefly about templates in AngularJS and the ng-include
directives, and how to combine them to create recursive templates that can be used to model any number of tree levels.
Here’s the video. Check the code snippets belows:
The Code
In this demo, I used a dummy controller just to have a model to work on, the controller looks like that:
The obvious magic comes from the HTML, here’s the relevant part:
You can see the result below:
I hoped you liked this one, and until next video.
How did I learn that?
As a bonus for coming here, I'm giving away a free newsletter for web developers that you can sign up for from here.
It's not an anything-and-everything link list. It's thoughtfully collected picks of articles and tools, that focus on Angular 2+, ASP.NET (4.x/MVC5 and Core), and other fullstack developer goodies.
Take it for a test ride, and you may unsubscribe any time.
You might also want to support me by checking these out [Thanks]: