hi problem with click processing

<div class="col-md-9 container-body" ng-controller="MainCtrl"> <div class="divider-parent"> <h1 ng-click="al()">главная</h1> <div class="divider"></div> </div> </div> var MainModule = angular.module('MainModule', []); MainModule.controller('MainCtrl', function($scope){ $scope.items = array; $scope.al = function(){ alert('dd'); } }); 

Everything is done on the off site but the couple does not work (

  • no ng-app ... - Grundy
  • I have it, however, the collection $ scope.items = array works - Sasuke
  • if there is an ng-app, then the above code is quite working. make a minimal reproducible example to reproduce the problem - Grundy

0