![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angularjs
千吾
这个作者很懒,什么都没留下…
展开
-
Execute http post request before directive (AngularJS retrieve data via AJAX before Directive runs)
here what you have to do: - add new variable to your $scope :$scope.resultLoaded = false; - change the post success to this:success(function(data) { $scope.result = makeTableFrom(data); $scop转载 2015-06-19 15:44:14 · 602 阅读 · 0 评论 -
angularjs惯性滚动指令
指令:.directive('inertiaScroll', function () { return { restrict: 'A', scope: {}, link: function ($scope, $element, $attrs) { var elem = $el原创 2015-11-01 01:02:54 · 3658 阅读 · 2 评论