# ngClick never works with ionic

**URL:** <https://forum.ionicframework.com/t/ngclick-never-works-with-ionic/48667>\
**Category:** ionic-v1\
**Created:** [April 7, 2016, 7:30am UTC](https://forum.ionicframework.com/t/ngclick-never-works-with-ionic/48667 "2016-04-07T07:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfghj44444](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dfghj44444](https://forum.ionicframework.com/u/dfghj44444)\
**Post date:** [April 7, 2016, 7:30am UTC](https://forum.ionicframework.com/t/ngclick-never-works-with-ionic/48667/1 "2016-04-07T07:30:20Z")

</div>

this is whole of the html:  
`<ion-view title="recor"> <ion-content overflow-scroll="true" padding="true" class="has-header"> <button type="button" class="button" ng-click="recordNew()" >test</button> <button id="page9-button4" type="button" class="button button-stable button-block" ng-click="recordNew()" >complete完成</button> </ion-content> </ion-view>`

the botton is in tyep button and not inside label,but just dont work,and here’s the js in controller.js:

```
.controller('NewScoreCtrl', function($scope) {
    $scope.recordNew = function() {
             // console.log("拨打:");
            alert("2");
            //$scope.tab = item;
            //Your other logic for soothe
            }
})

```

no erros or ouptut

---

<div class="post-metadata">

**Author:** ![dfghj44444](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dfghj44444](https://forum.ionicframework.com/u/dfghj44444)\
**Post date:** [April 7, 2016, 8:12am UTC](https://forum.ionicframework.com/t/ngclick-never-works-with-ionic/48667/2 "2016-04-07T08:12:40Z")

</div>

I found the porblem,it’s in routes.js,it didn’t connected.
