单击时未触发angularjs按钮事件

单击时未触发angularjs按钮事件,angularjs,Angularjs,我的线路上少了点东西。单击按钮时,不会显示方法中的警报 <div id="mapFilter" ng-controller="MapsController"> <div> <h3>{{SelectedCustomer.officeName}}</h3> <input type="button" ng-click="getProperties()" value="Get Data" /> </di

我的线路上少了点东西。单击按钮时,不会显示方法中的警报

  <div id="mapFilter" ng-controller="MapsController">
   <div>
     <h3>{{SelectedCustomer.officeName}}</h3>
     <input type="button" ng-click="getProperties()" value="Get Data" />
   </div>

   <div>
     <p>hotel count: {{allHotels.length}}</p>
     <p>preferred count: {{preferredHotels.length}}</p>
   </div>
 </div>
普朗克:

谢谢

您必须添加指令以自动引导应用程序:

<body ng-app="main">


然后,您的plunker中会出现一些错误,您必须首先修复这些错误(即加载ng资源,…)

只有几个输入错误。。关闭标记。当。谢谢@PSL
<body ng-app="main">