I would like to use responsive slider plugin with angular but i don't know how to approach the problem.
the pluging html looks like that:
<ul class="rslides">
<li><img src="1.jpg" alt=""></li>
<li><img src="2.jpg" alt=""></li>
<li><img src="3.jpg" alt=""></li>
</ul>
and the courasel has to be initialized in a standard way:
<script>
$(function() {
$(".rslides").responsiveSlides();
});
</script>
How should I make it using angular directive.
My controller looks like that:
angular.module('kingaFrontend')
.controller('FeaturedCtrl', function ($scope, kingaApi) {
kingaApi.Photo.getFeaturedPhotos()
.success(
function (response) {
$scope.photos = response.photos
})
.error(function (response){
switch(response && response.code) {
default:
console.log("error", response )
// $scope.errors.usernameErrors.push('An error occurred.');
}
});
});