You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JPeak This is a documentation bug on my part. Whenever you want to use vfr, you'll need to include the custom component ngforce on the page. This forces visualforce to load the visualforce object etc.
You can include that by including the following markup on your visualforce page:
When I try to run the nfForce.js and safeApply.js code in my angular app on my APEX page I get an error that VisualForce is not defined.
ReferenceError: Visualforce is not defined
at Object.vfRemote.query (https://c.na15.visual.force.com/resource/1389663296000/employee/employee/lib/ngForce.js:251:4)
at new (https://c.na15.visual.force.com/resource/1389663296000/employee/employee/controllers/employeeList.js:3:26)
at d (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:30:452)
at Object.instantiate (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:31:80)
at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:61:486
at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:49:14
at q (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:7:380)
at E (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:48:382)
at f (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:42:399)
at f (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js:42:416)
The text was updated successfully, but these errors were encountered: