Looked at “best angular practices”, and there is a controller creation template 
I do by example:
(function (angular) { angular .module('test', []); angular .module('test') .controller('countryCtrl', countryCtrl); //countryCtrl.$inject = ['$scope']; function countryCtrl() { var vm = this; vm.country = { name: 'Ukraine', area: '603 628', population: '42 825 883', capital: { name: 'Kiev' } }; } })(angular); Layout:
<div class="box" ng-controller="countryCtrl"> <h1 class="h1">Страна: {{this.country.name}}</h1> <p>Площадь: {{this.country.area}}</p> <p>Население: {{this.country.population}}</p> <p>Столица: {{this.country.capital.name}}</p> </div> And nothing is displayed, what am I doing wrong? Thank.
ng-controller="countryCtrl as vm"is not for nothing called controller as syntax - Grundy