@ezazwar wrote:
Hi all,
i Am using a custom directive inside my view and its working fine
Directive
angular.module('starter.Directives', [])
.directive('browseto', [function() {
return {
restrict: 'AEC',
templateUrl: "templates/myadvert.html",
replace: true,
scope: { },
controller: function($scope) {
$scope.yo = function() {
alert('yo!');
}
}
}
}]);template
<a class="item item-thumbnail-left" href=""> <img src="https://lh5.ggpht.com/VnYKD_WeQ6pKkQxHj6pbaClnc-0QExEn9E0viEkL46k4CWquyl8SlAlvNWC7AQvIcyw=w300"> <h2>Pretty Hate Machine</h2> <p>Nine Inch Nails</p> </a>
This will show the user advertisements and i am using a ionic list and this appears after every $index%5==0 after every fifth instance of the list now what i want is the data of the advertisement should be grabbed from the sqlite database and should request for new ad after every appearance
Can someone Help me with this
Thanks in Advance
Posts: 1
Participants: 1