Chapter 9: Sanity checking with ng-strict-di

HTML

<script src="https://code.angularjs.org/1.3.2/angular.min.js"></script>
<div ng-app="myApp" ng-strict-di>
    <div ng-controller="Ctrl">{{a}}</div>
</div>

JavaScript

angular.module('myApp',[])
.controller('Ctrl', ctrl);

function ctrl($http, $scope) {
	return $http({
    method: 'GET',
    url: "portal",
    params: {
      portal_type_id: 2
    }
  });
}
ctrl.$inject = ['$http','$scope'];