AngularJS : directives and scope

后端 未结 4 1602
无人及你
无人及你 2021-01-21 01:39

I have a simple question that I think has a pretty simple solution, but somehow I am missing it.

I\'m setting up a simple directive for my app. I\'m leaving the scope pr

4条回答
  •  暖寄归人
    2021-01-21 01:52

    Try Injecting scope into your directive.

    MyDirectives.directive("mdPagination", function($scope){...
    

提交回复
热议问题