Skip to content
Advertisement

Tag: angularjs

SyntaxError: Unexpected token o in JSON at position 1

I’m parsing some data using a type class in my controller. I’m getting data as follows: I tried to store the data like this How can I extract the user list to a new variable? Answer The JSON you posted looks fine, however in your code, it is most likely not a JSON string anymore, but already a JavaScript object.

Angular – Datatable click row event

I am working with AngularJS and angular-datatable and I want to work with the event in a row, I have setup the controller to listen the event but it is not work. My code is : html controller.js app.js Thanks for all. Answer Since you are using the angular way for rendering, why not use ng-click as well :

Advertisement