In some places you have misspelled gauge as guage. Your problem
might be as simple as that.

Tony

In article <[email protected]>,
madhu sudhan <[email protected]> wrote:
> 
> I have a directive, for where the rest html is given. The directive is 
> given below
> 
>     angular.module('Gauge', [])
>     
>             .directive('gauge', function () {
>                 "use strict";
>         
>                 return {
>         
>                     restrict: 'A',
>         
>                     scope: {
>                         input: '=',
>                         spectrumMin: '=?',
>                         spectrumMax: '=?',
>                         loError: '=?',
>                         hiError: '=?',
>                         loWarn: '=?',
>                         hiWarn: '=?',
>                         showDecimals: '=?',
>                         description: '@',
>                         guageid:'@',
>                         unit: '@'
>                     },
>         
>                     templateUrl: 'gauge/gauge.tpl.html',
>         
>                     replace: true
>         });
> 
> The below is the html loaded after the directive compilation.
> <div ng-controller="Testing">
> <div>
>     <div id="{{guageid}}" class="gauge ng-isolate-scope" 
> ng-model="gauge.input" data-service="/api/getDataResult/core-mon-status" 
> guageid="fleet_online" description="Fraction of fleet online" unit="%" 
> test="{{gauge.test}}" input="{{gauge.input}}" gauge="">
>     </div>
> </div>
> </div>
> Now I have a parent controller above this dom element name is Testing.
> 
> >From my controller if I change the {{guage.input}} its not displaying.
> 
> This is my controller
> 
>     
> app.controller('Testing',['$scope','newdataLoad','$timeout',function($scope, 
> newdataLoad, $timeout){
>             $scope.gauge = {};
>     $scope.gauge.input = 0;
>     });
> 
> What is the problem with my scope here.
> 
-- 
Tony Mountifield
Work: [email protected] - http://www.softins.co.uk
Play: [email protected] - http://tony.mountifield.org

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to