1
내가 사용 지침을
`에 함수가 아닙니다 mathjaxBind
되지만, 아래와 같이 문제 : em.contents가 mathjaxBind` 지시어
mathjaxBind
지침에
코드는 : $scope.$watch
의
.directive("mathjaxBind", function($compile) {
return {
restrict: "A",
controller: ["$scope", "$element", "$attrs",
function($scope, $element, $attrs) {
$scope.$watch($attrs.mathjaxBind, function(texExpression) {
var em = $element.html(texExpression);
$compile(em.contents())($scope);
MathJax.Hub.Queue(["Typeset", MathJax.Hub, $element[0]]);
});
}]
};
})