mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
16 lines
299 B
JavaScript
16 lines
299 B
JavaScript
'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);
|
|
}));
|
|
});
|