IIN Learning Center

My project at IIN. Started in April 2013 version 1 launched in May 2014. I was responsible for coding the front-end and design as well.

Highlights

  • Mockups Designed in Photoshop
  • Front-end Built with AngularJs
  • Powered by Drupal RESTFUL Api

Code Sample


//String Format
dashboard.filter('strFormat', function () {
/*
  //String library
  vm.text = '$1 of $2';

  //Controller
  vm.data.s1 = 3;
  vm.data.s2 = 10;

  //Template
  ng-bind-html="vm.text | 
  strFormat:{$1: vm.data.s1, $2: vm.data.s2}"

*/

 return function (input, replacements) {

   angular.forEach(replacements, 
   
   function (val, ind) {

        input = input.replace(ind, val);

    });

    return input;
  }

 });
//End String Format
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s