mankindsoftware / angular-isotope

AngularJS directives to easily work with JQuery Isotope.
http://mankindsoftware.github.io/angular-isotope
204 stars 79 forks source link

Filtering is broken if ok-kind and isotope-container are registered within a different scopes. #47

Open AlexPikalov opened 9 years ago

AlexPikalov commented 9 years ago

I faced with a filtering issue. If ok-kind and isotope-container are registered within different scopes filtering does not work. Particulary if a page layout is something like this

<div ok-kind>... <div>
<div ng-if="condition">
  ...
  <div isotope-container></div>
  ...
</div>

the root cause is scope.$emit within opt-kind link-function

emitOption = function (option) {
  optionsStore.store(option);
  return scope.$emit(optPublish, option)
}

Quick solution is to replace scope.emit -> scope.$broadcast

mattfili commented 9 years ago

+1