This snippet is a function or what

app.controller(‘MainController’, [’$scope’, function($scope) {
$scope.title = ‘Top Sellers in Books’;
}]);

need line by line info what is this? what we doing or creating here?

Please read
https://stackoverflow.com/questions/32534283/angularjs-sample-controller/32534354

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.