how to pass data from controller to view in angularjs?
['Data in this way pass from the controller to the scope, and then the data passes back and forth from the scope to the view.', 'The scope is used to expose the model to the view. ... ', 'Controllers should not ideally be used for manipulating the DOM.']