0.0.13 • Published 8 years ago

node-ng v0.0.13

Weekly downloads
5
License
BSD3
Repository
github
Last release
8 years ago

for an explanation of usage see: the blog post

##NOW RUN YOUR ENTIRE Angular App $digest-loop via node-ng !!!!

Node-Ng is now a full featured angular test environment. use any test runner you want!!! No more being forced to use karma and jasmine. examples use tape test runner, but any can be used.

run / test : - controllers via $controller service
- services/factorys via ng_injector convience function
- directives via $compile service
- emulate $scope.$digest by simply getting $rootScope and calling its $digest function

convience functions included:
ng_load(name) - replacement for angular.inject(name,appName)
ng_bootstrap(app) - boostraps angular app for use
* ng_injector(app) - returns injector function for use in testing, ie:

```nodejs
var injector = ng_injector('app');
// load needed depedencys easily here
injector(function($controller,$rootScope,$interpolate){
    tape = require('tape');
    tape.test('example',function(t){
        t.ok();
        t.end();
    });
});
```
0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago