Scope Inheritance

Kmandapalli
Posted by Kmandapalli under AngularJS 1x category on | Points: 40 | Views : 1196
<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