R
R
RodgerFox2015-11-26 14:49:49
Angular
RodgerFox, 2015-11-26 14:49:49

How to properly implement the functionality in such a situation?

Hello everyone, there is an AngularJS Batarang chrome extension, running it I noticed an error: Error: $parse:syntax Syntax Error , in short, it refers to a function call ng-click="deleteProfile({{checkProfile.id}})". And it appears during the compilation of the page. Because the checkProfile scope has not yet been created, but is created in the controller by the data via $resource. If you do not look through the extensions, of course there is no error, and the question is, how to do it right? Leave as is? Or is there an easy hack? (the functionality with the "preloader" (I don't know what it's called correctly) hasn't looked in Angular yet. I mean, draw the page when the controller loads everything you need.
Thank you.
The question is, where to dig, if there is a controller inside it, one is still called, if the "consollog" with some text is added to the second, it is called 2 times. Where to dig? The same applies to requests, it seems to me that there is no synchronism between loading templates and controllers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-11-26
Protko @Fesor

But tell me, why do you need interpolation here?
and do not need these perversions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question