title: how can i use ngModel inside bindings of components angularjs
body: <pre><code>angular.module('RatingModule').component('starRating', {
      templateUrl: 'rating.html',
      controller: RatingCtrl,
      bindings: {
          maxStars: '=',
          ngModel : '='
  </code></pre>
  
  <p>//above is the component where i want to use ngModel inside bindings of coponents</p>
  
  <pre><code>function RatingCtrl() { i want to use ngModel here }
  </code></pre>
  
  <p>// below is the index.html where ng-model is binding a value from the app controller </p>
  
  <pre><code>&lt;body ng-app="RatingModule" ng-controller="appCtrl as ctrl"&gt;
  &lt;star-rating ng-model="ctrl.rating.number" max-stars="5"&gt;&lt;/star-rating&gt;
  </code></pre>
  
  <p></p>