angularjs - ngTable updates ngClass result in error -


I'm using 'ngTable' to display a large collection of data

But when I try to add an NG-Class (FN) the first time it works (displays the information class), but when I manipulate the data (as i Change attribute winner on ( ng-click = "(togglewinner (user))" ), it throws an error instead of updating the class.

ngTable:

  
tr style = "cursor: pointer;" ng-click = "togglewinner (User); "ng-rss =" getclass (user) "and gt; & lt; td data-title =" 'burger' "sort =" 'name "" & gt; ; {{User.name}} & lt; / td & gt; & lt; td Data-Title = "'Email' '=' 'Email' '& gt; {{user.email}} & lt; / Td> & lt; td data-title = "form '' sortable =" 'company "" & gt; {{User.company}} & lt; / Td> & Lt; Td data-title = "'mobil'" sort = "'mobile'" & gt; {{UserMobile}} Lieutenant; TD Data-Title = "Wandette Delight" & gt; {{GetPrevious win (user.mail)}} & lt; / Td> & Lt; Td data-title = "'idle winner'" & gt; & Lt; Span ng-show = "user.winner == true" class = "glyphicon glyphicon-ok" style = "color: dark green" & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Div & gt;

getClass (user) :

  $ scope.getClass = function (user) {if (user.winner) { Return "Success"; } And if ($ scope.getPrevious winnings (user.email). Length> gt; {return "info"; } Other {return ""; }};  

I hope you can help, and thank you for seeing once

Error Description:

< Pre> TypeError: There is no function on object. In the form of [[FN] (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js:136:370). Digest at $ (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js:106:311) HK. Applicable on (https://ajax.googleapis.com/ajax/Libs/AngelRaj/ 1.2.16/ConularMin.JS: 109: 287) on HTMLTableRowElement. & Lt; Anonymous & gt; (Http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js:189:372) at HTMLTableRowElement.m.event.dispatch (local / js / libs / jquery-1.11 1 .min.js: 3: 8436) at HTMLTableRowElement.r.handle (Local / JS / Libs / jquery-1.11.1.min.js: 3: 5146)

The most important thing is the first (solution):

Check your versions of libs to make sure they are identical

I was using angularjs 1.2.16 and angular-animate 1.2.10 . Because of this, it happened as its own angular call (it was thought) $ animate.setClass () .

But AngularAnimet 1.2.10 does not have it there, and since I import animate, it rewrites $ animate , Then there was no way to be called minified versions.

Anyway, thank you for making me gentle is Kostiya so that I can work on it.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -