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.
--
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.