• LxD Series: Implementing AngularJS templates and routers

    Ok so we are going to implement templates and routers in AngularJS. Routers are going to help us to get unique URLs per page, or view while templates, as you know will help to provide theme of our app. This is what we came up in my last post. What I am going to do to shift the markup of this listing in a separate file and come up with a layout. Therefore index.html will look like this: [crayon-5f740e45e03ef245317611/] You should notice that I removed all the stuff from content div and add another directive, ng-view. Ng-view tells AngularJS that particular DIV will be used as a container of multiple views. Now…