aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/ngInitSpec.js
blob: 9214608925a740ce7143490ea6d2f21710092fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';

describe('ng-init', function() {
  var element;


  afterEach(function() {
    dealoc(element);
  });


  it("should ng-init", inject(function($rootScope, $compile) {
    element = $compile('<div ng-init="a=123"></div>')($rootScope);
    expect($rootScope.a).toEqual(123);
  }));
});