How to dynamically load template for a directive in AngularJS

0 Comments

  If you want to dynamically load a template for a directive in AngularJS, just follow the steps found at: https://medium.com/angularjs-meetup-south-london/angular-directives-using-a-dynamic-template-c3fb16d03c6d   Something like:   HTML   JavaScript

A little AngularJS directive for setting focus on model change.

0 Comments

I created a simple plunker based on http://www.emberex.com/programmatically-setting-focus-angularjs-way/   When the user clicks on the button the textarea gets focused.     Here is the code: http://plnkr.co/edit/eo7es1xZTdB274BQNXMV?p=preview

Dynamic loading of views as directives in an AngularJS wizard.

0 Comments

Demo and Code can be found at: http://plnkr.co/edit/Ht4ud6kyJUzDTQdS9MI2?p=preview     Just for the fun, I added a D3.js chart:     A simple AngularJS wizard that dynamically loads pages (views). In the plunker each page

AngularJS tip, quote your css classnames in ng-class

0 Comments

It is a common practice to use spinalcase in CSS, like the css class “.ada-wizard-marker”. If you want to use this class in a ng-class directive, where the input is an object, use single quotes,