Skip to content
Kyle J. Roux edited this page Oct 31, 2016 · 1 revision

to use node-ng just require it (which gives a function) then wrap that around a function that has your code

var run_angular_func = require('node-ng');
var my_app_func = function(){
    // your app code here
    // ie:
    var app = angular.module('app',[]);
}
// this runs your app
run_angular_func(my_app_func);