が定義されていません。
try {
var templateHTML = angular.element('<p>{{total}}</p>'),
scope = ....;
var clonedElement = $compile(templateHTML)(scope, function(clonedElement, scope) {
//attach the clone to DOM document at the right place
});
//now we have reference to the cloned DOM via `clone`
} catch (ex) {
alert(ex.message);
}
が、私は戻って取得すべて"$コンパイルは定義されていません"
HELP!
コントローラの残りの部分はどのように見えるのですか?コントローラー(コントローラー( 'mycontroller'、function($ compile){...}など)をコンパイラーに注入しましたか? –