Hi, Here is solution of your question you can easily combine angular js with salesforce visualforce using the given code Using this code you can find all the opportunities records related to particular account by providing account id.
AngularDemoController is the controller class for the given visualforce code
AngularDemoController
global with sharing class AngularDemoController {
// hardcode an account id for demo purposes
static String accountId = '0010o00002BlG17AAF';
global static String getAccount() {
return JSON.serialize([select name, billingstreet,
billingcity, billingstate, billingpostalcode
from account where id = :accountId][0]);
}
global static String getOpportunity() {
return JSON.serialize([select id, name, email__c,amount,ExpectedRevenue
from opportunity where accountId = :accountId]);
}
}
In this post, I am going to share the information about how you can use Angular JS with Visualforce to display records onto your Visualforce Page. Please refer the links given below, that may be helpful to you: https://webkul.com/blog/angular-js-with-visualforce-page/ https://www.youtube.com/watch?v=vWo3nwwfSKI
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Follow the below references -
https://www.algoworks.com/blog/develop-salesforce-visualforce-apps-using-angularjs/
https://www.w3schools.com/angular/default.asp
Include the CDN of AngularJs in your VF page and then use the library according to your requirement.
Mark it as best answer if it helps you.
Thanks,
Parmanand Pathak
Using this code you can find all the opportunities records related to particular account by providing account id.
Test.vfp
AngularDemoController is the controller class for the given visualforce code
AngularDemoController
please visit below link:
https://webkul.com/blog/angular-js-with-visualforce-page/
here you will come to about all advantage and limitations
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
In this post, I am going to share the information about how you can use Angular JS with Visualforce to display records onto your Visualforce Page.
Please refer the links given below, that may be helpful to you:
https://webkul.com/blog/angular-js-with-visualforce-page/
https://www.youtube.com/watch?v=vWo3nwwfSKI
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.
In your code working fine but in Opportunity we have required fileds CloseDate and Stage