angular js code
angular.module('myapp')
.controller('PostsController', function($scope, $window, $http){
$scope.$watch('selectedCities', function(newValue, oldValue) {
if(newValue === oldValue ){
return;
}
//to call a jQuery variable wookmark
}, true);
}
jquery code
$(function ($) {
var container = '#wookmark_container',
$container = $(container),
tileCount = 30,
$window = $(window),
$document = $(document),
wookmark;
// Initialize Wookmark
wookmark = new Wookmark(container, {
offset: 5, // Optional, the distance between grid items
outerOffset: 10, // Optional, the distance to the containers border
itemWidth: 260, // Optional, the width of a grid item
autoResize: true
});
});
What I am trying to do is if a select options changes I would like to reload a wookmark jquery plugin.
Is it doable to call a jquery vairable in angularjs?
Thanks for any help.