You need to sign in to do that
Don't have an account?
Ajinkya Salve
Trying to use ng-force, script not working.
script type="text/javascript">
var MyApp = angular.module('MyApp', ['ngForce','ui','ui.bootstrap']);
MyApp.controller('RatingCntrl', function ($scope,vfr,$dialog) {
$scope.GroupTitle= "Channel Affinity";
$scope.GroupId= "1";
var pOppQuery = vfr.query("SELECT Id, Name, Account.Name, LeadSource, Probability, CloseDate, StageName, Amount FROM Opportunity ORDER BY CloseDate DESC");
pOppQuery.then(function(d) {
$scope.opportunities = d.records;
if(!$scope.$$phase) {
$scope.$digest();
}
});
});
</script>
Above is the script, please point out mistakes i've made.
var MyApp = angular.module('MyApp', ['ngForce','ui','ui.bootstrap']);
MyApp.controller('RatingCntrl', function ($scope,vfr,$dialog) {
$scope.GroupTitle= "Channel Affinity";
$scope.GroupId= "1";
var pOppQuery = vfr.query("SELECT Id, Name, Account.Name, LeadSource, Probability, CloseDate, StageName, Amount FROM Opportunity ORDER BY CloseDate DESC");
pOppQuery.then(function(d) {
$scope.opportunities = d.records;
if(!$scope.$$phase) {
$scope.$digest();
}
});
});
</script>
Above is the script, please point out mistakes i've made.
I'm the author of ngForce.
You've not mentioned any errors you're receiving so I'm not sure what kinds of issues you're facing.
Can you say more about what issues you're facing?
what all are inculded to run ngForce??