title: Angular star rating directive issue in Angular 1.4.7
body: <p>I have a little problem with star-rating directive.</p>
  
  <p>Here is star-rating directive code and it is working perfectly in Angular 1.3.16 version but NOT working in Angular 1.4.7 version.</p>
  
  <p>Acutually, It is still working in Angular 1.4.7 version, but keep reporting error <strong>"TypeError: scope.onRatingSelected is not a function"</strong></p>
  
  <pre><code> .directive("starRating", function() {
        return {
          restrict : "EA",
          template : "&lt;ul class='rating' ng-class='{readonly: readonly}'&gt;" +
                     "  &lt;li ng-repeat='star in stars' ng-class='star' ng-click='toggle($index)'&gt;" +
                     "    &lt;i class='fa fa-star'&gt;&lt;/i&gt;" + //&amp;#9733
                     "  &lt;/li&gt;" +
                     "&lt;/ul&gt;",
          scope : {
            ratingValue : "=ngModel",
            max : "=?", //optional: default is 5
            onRatingSelected : "&amp;?",
            readonly: "=?"
          },
          link : function(scope, elem, attrs) {
            if (scope.max == undefined) { scope.max = 5; }
            function updateStars() {
              scope.stars = [];
              for (var i = 0; i &lt; scope.max; i++) {
                scope.stars.push({
                  filled : (i &lt; scope.ratingValue.rating)
                });
              }
            };
            scope.toggle = function(index) {
              if (scope.readonly == undefined || scope.readonly == false){
                scope.ratingValue.rating = index + 1;
                scope.onRatingSelected({
                  rating: index + 1
                });
                scope.onRatingSelected()(index + 1);
              }
            };
            scope.$watch("ratingValue.rating", function(oldVal, newVal) {
              if (newVal) { updateStars(); }
            });
          }
        };  
      })
  </code></pre>