Answers for "pass value to custom directive angularjs"

0

pass value to custom directive angularjs

<div class="photoframe">
  <img src="{{gImg.thumbnailUrl}}" url="{{gImg.imageUrl}}" image-gallery>
</div>
 myApp.directive('imageGallery',function(){
return {
    restrict: 'A',
    scope: {
      url: '@'
    },
    controller: function($scope){
        console.log($scope.url);
    }
}
});
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language