Reputation: 4097
in an Angularjs controller i have the following function:
function colorDropDownEditor(container, options) {
$('<input data-text-field="Myobject" data-value-field="Referente" data-bind="value:' + options.field + '"/>')
.appendTo(container)
...
...
Now my question is: how angularjs can execute the jquery method? How can interpret the "$" symbol?
Thanks
Upvotes: 0
Views: 67
Reputation: 39383
Angular includes jqLite, which implements a subset of all jQuery functionality.
From the Angular FAQ:
Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.
Upvotes: 2