I'm currently utilizing the loopback-angular-sdk and encountering a strange error while using the updateAttributes function:
MyModel.prototype$updateAttributes is not a function
This issue seems to be affecting all models. I have a hunch that it might be related to a dependency problem.
Despite including angular-resource.js in my index.html, the error still persists.
Here is an excerpt from my bower.json file:
{
"name": "angular",
"version": "1.0.0",
"dependencies": {
"bootstrap": "^3.3.7",
"angular": "1.6.1",
"angular-route": "latest",
"angular-material": "^1.1.1",
"angular-ui-router": "^0.3.2",
"angular-resource": "1.6.1",
"material-calendar": "^0.2.14",
"textAngular": "^1.5.16",
"jquery": "^3.1.1",
"material": "^0.1.1",
"angular-material-data-table": "^0.10.10",
"moment": "^2.17.1",
"angular-translate": "^2.13.1",
"angular-translate-loader-static-files": "^2.13.1",
"angular-translate-storage-local": "^2.13.1",
"angular-animate": "1.6.1",
"angular-aria": "1.6.1",
"angular-recaptcha": "^4.0.3" ,
"angular-i18n": "1.6.1",
"angular-dynamic-locale": "^0.1.32"
},
"resolutions": {
"angular": "1.6.1",
"angular-material": "^1.1.1"
}
}
Your assistance with this matter would be highly appreciated. Thank you!