I'v not changed anything in plugin and menu works fine for me.

On Wednesday, October 1, 2014 9:05:16 AM UTC+5, Jason Villalon wrote:
>
> Hi,
>
> I figured out the problem. turns out that the problem is in the jquery 
> plugin.
>
> http://jsfiddle.net/re8jX/38/
>
> i moved the plugin declaration at the top of js. then i commented
>
> //if (!$.data(this, "plugin_" + pluginName)) {
>        $.data(this, "plugin_" + pluginName, new Plugin(this, options));
> //}
>
> then voila the menu works after updating the $scope.menus. ^^
>
> my question is how to reset the $.data of that element from angularjs.
>
> Regards,
> Jason Villalon
>
> On 1 October 2014 10:14, Thiago Santos <[email protected] 
> <javascript:>> wrote:
>
>> Hi Jason,
>>
>> I'm going through the same problem. You solved yours?
>>
>> Em terça-feira, 3 de junho de 2014 20h58min22s UTC-3, Jason Villalon 
>> escreveu:
>>
>>> Im trying to refresh my jquery plugin after the data is changed.
>>>
>>> http://jsfiddle.net/jasonv/re8jX/22/
>>>
>>> its seems that after changing the scope, jquery plugin is not beeing 
>>> re-initialized.
>>>
>>> Thanks in advance.
>>>
>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "AngularJS" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/9DUifXyzKQg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to