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);
}
}
});
Also in JavaScript:
- $(...).autocomplete is not a function
- cre&atRefs react js
- no styles are appearing in angular calendar
- javascript parse to string
- javascript get image width and height
- how to scroll down to the bottom of a div using javascript
- adonis hasone
- Javascript compare two arrays
- ternary operator in javascript
- cordova read file in www folder
- queryselector data attribute
- jQuery select immediate children
- alternate color to table row jquery
- javascript count element in array
- javascript disable scrolling on body
- regular expression should not contain special character
- ali express no ads apk latest
- Javascript $.get(
- js append en tête
- angular mouseenter
- empty array javascript
- limitar la cantidad de decimales en javascript
- react make an ascending descending button
- Accessing Object Properties with Variables