Inject variables via ng-init to controller
问题 I want to inject the same variables with different values multiples times to the same controller. This is what I tried. What is a way to get different values in each call? HTML <body ng-app="myApp"> <div ng-controller="myCtrl" ng-init="test='helloworld';test1='helloworld2'"> </div> <div ng-controller="myCtrl" ng-init="test='helloworld3';test1='helloworld4'"> </div> <div ng-controller="myCtrl" ng-init="test='helloworld5';test1='helloworld6'"> </div> <body> JavaScript code var app = angular