mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
Change API angular.compile(element)([scope], [element/true])
This commit is contained in:
@@ -3,11 +3,9 @@ describe("directive", function(){
|
||||
var compile, model, element;
|
||||
|
||||
beforeEach(function() {
|
||||
var compiler = new Compiler(angularTextMarkup, angularAttrMarkup, angularDirective, angularWidget);
|
||||
compile = function(html) {
|
||||
element = jqLite(html);
|
||||
model = compiler.compile(element)(element);
|
||||
return model;
|
||||
return model = angular.compile(element)().scope;
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user