AngularJS (ng)

  • ngLoadScript

    Tags: nG, ngLoadScript

    /*global angular */

    (function (ng) {

    'use strict';

    var app = ng.module('ngLoadScript', []);

    app.directive('script', function() {

    return {

    restrict: 'E',

    scope: … more

  • Alternative to $.getScrip() in vanilla JS

    Tags: JS, getScript

    function getScript(url,success){

    var head = document.getElementsByTagName("head")[0], done = false;

    var script = document.createElement("script");

    script.src = url;

    // Attach handlers … more

  • Setting Up node.js for AngularJs in Mac And Windows

    Reference (a) : Install Multiple Versions of Node.js using nvm - Install 'nvm' to install node.js on to the machine.

    Reference (b) : Node Version Manager 

    'npm' is the package … more