我在 AngularJS 中有一个应用程序,在我的一个 View 中,我想实现一些 JQuery 动画..没什么特别的..只是隐藏/滑动 div..这些 div 是从 ng-reapet 循环创建的,我需要访问 DOM 元素以编写我的 JQuery 。我应该把我的代码 Controller 或指令放在哪里?我的代码示例:
$(document).ready(function(){
$(".motivation").hide();
$(".show_hide").show();
});
$(document).on("click", ".more", function(){
$(this).parent().next().slideToggle();
return false;
});
最佳答案
关于angularjs - AngularJS Controller 或指令中的 Jquery 动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17728780/