Blog

February 2015 articles

Using HTML view templates in Express JS framework

Posted: Sunday 22nd February, 2015 - 8:17pm
Author: James Griffiths

One of the great things about working with the MEAN stack (MongoDBExpress JSAngularJS and Node - for those not in the know!) is its relative simplicity: JavaScript is the common thread tying all the components of the stack together, so the learning curve is relatively shallow.

One of the worst things? Jade templates.

Seriously.......Jade sucks.

Here's how to get the Express framework to use HTML templates instead.

Read more...

Managing website assets with Bower

Posted: Saturday 21st February, 2015 - 8:11pm
Author: James Griffiths

There's no denying that front-end development as a discipline has grown rapidly in the last 5 to 6 years with an ever increasing number of competing technologies, particularly in the JavaScript world with an explosion of different libraries and MVC oriented frameworks.

Managing these front-end assets, in addition to development oriented tasks, can be a real hassle, particularly where new software releases are concerned.

This is where Bower steps in to help.

Read more...

Scrolling to a page anchor in Ionic Framework

Posted: Tuesday 17th February, 2015 - 8:03pm
Author: James Griffiths

If you've been working with the Ionic Framework you'll be familiar with setting up AngularJS routes for your controllers and view templates which are then triggered with hyperlinks used within your App. The combination of Ionic and AngularJS makes this easy to implement but when it comes to scrolling to a particular anchor inside a view template things get a little trickier.

Read more...

Parsing html data from an array inside an AngularJS view

Posted: Monday 16th February, 2015 - 7:53pm
Author: James Griffiths

There's no denying that AngularJS is a fantastic framework to develop with but if you're coming from a jQuery/traditional JavaScript background there are certain aspects of Angular based development you might initially struggle with.

One of those is parsing HTML strings within views using ng-repeat.

Read more...

Incrementing a loop inside an angularjs view

Posted: Saturday 14th February, 2015 - 9:42pm
Author: James Griffiths

If you've been using AngularJS for some time you might find there are occasions where you want to display the incremented value of a loop counter inside a view instead of calculating/returning that from within the controller logic.

Doing this is incredibly easy...

Read more...
Top