My Angular controller has a variable called $scope.abc.
The backend I'm using is Sails.
The initial value of $scope.abc can be set by the backend when the page is first generated. Once the page is displayed, the user may or may not change this value.
Instead of having the backend generate a complete static page and then querying it for the initial value of $scope.abc, I believe it would be more efficient to have the initial value determined during the page generation process.
So, my question is: How can I initialize $scope.abc when the webpage is being created? Is there a way to pass data to an Angular JS file like we do with res.view("",data) in backend development?