AngularJS Directive for Magnific Popup
Matt Borgman
51

as I can implement

<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>

<script src=”//localhost:3000/sintesis/js/angular/app.js”></script> <! — controllers ! — >

<script src=”//localhost:3000/sintesis/js/angular/directive.js”></script> <! — directive ! →

html

<div class=”gallery”>
 <div ng-repeat=”image in images”>
 <a ng-href=”http://sintesis.mx/images/imagenes-galeria/{{image.imagenPortada}}" gallery class=”image” title=”{{image.titulo}}”>
 <img ng-src=”http://sintesis.mx/images/imagenes-galeria/{{image.imagenPortada}}">
 </a>
 </div>
 </div>

controller

$http.get(base_url_angular+’service/Imagenes/albums/3').success(function(data){
 $scope.images = data.imagenes;
 });

Show your support

Clapping shows how much you appreciated ~Lu@n~’s story.