Scope Inheritance

Kmandapalli
Posted by Kmandapalli under AngularJS category on | Points: 40 | Views : 231
<script>
var mainApp = angular.module("mainApp", []);

mainApp.controller("shapeController", function($scope) {
$scope.message = "In shape controller";
$scope.type = "Shape";
});

mainApp.controller("circleController", function($scope) {
$scope.message = "In circle controller";
});
</script>

Comments or Responses

Login to post response