브래킷이 돌아올 때 각도 지시문이 작동하지 않는 이유는 무엇입니까? 브래킷은 반환에 인접 할 때"반환"후의 AngularJs 브라켓
app.directive("alert", function() {
return
{
restrict: "EA",
template: "<div>Alert!!</div>"
};
});
그러나이 작업을 수행합니다
app.directive("alert", function() {
return {
restrict: "EA",
template: "<div>Alert!!</div>"
};
});
그리고 JavaScript에 대해 새로운 것을 배웠습니다. https://jsfiddle.net/o4ctxght/ 좋은 질문입니다! – David