Re: [AngularJS] Re: using $watch within another $watch

2015-06-15 Thread Sander Elias
Hi Kiran, Drop you directive, its doing you more harm then good. Try this: div pubpri span ng-if=userprofile.pubpriEmailEmail IDb:/b {{userprofile.useremail}} /span div ng-if=userprofile.result label class=label-radio inline style=padding-left: 850px ! important;

Re: [AngularJS] Re: using $watch within another $watch

2015-06-15 Thread Kiran A
Hi Alain , i tried your suggestion but it didn't worked. On Mon, Jun 15, 2015 at 10:33 PM, Alain Chautard achaut...@gmail.com wrote: Did you try my suggestion? Does it help? On Sunday, June 14, 2015 at 9:10:10 PM UTC-7, Kiran A wrote: Hi Alian, flag and fflag are the values which i am

Re: [AngularJS] Re: using $watch within another $watch

2015-06-15 Thread Alain Chautard
Did you try my suggestion? Does it help? On Sunday, June 14, 2015 at 9:10:10 PM UTC-7, Kiran A wrote: Hi Alian, flag and fflag are the values which i am taking from the controller and i am using those values in directive for DOM manupulation On Sat, Jun 13, 2015 at 12:33 PM, Luke Kende

Re: [AngularJS] Re: using $watch within another $watch

2015-06-14 Thread Kiran A
Hi Alian, flag and fflag are the values which i am taking from the controller and i am using those values in directive for DOM manupulation On Sat, Jun 13, 2015 at 12:33 PM, Luke Kende luke.ke...@gmail.com wrote: Yeah, this is hard to decrypt. You might want to use a plunkr to illustrate.

[AngularJS] Re: using $watch within another $watch

2015-06-13 Thread Luke Kende
Yeah, this is hard to decrypt. You might want to use a plunkr to illustrate. That said... it be easier to have separate watches and a new local variable to know the difference. directive.link = function($scope, element, attributes) { var makepubpriHidden = false;

[AngularJS] Re: using $watch within another $watch

2015-06-12 Thread Alain Chautard
What about this: span class=hidemain ng-hide=! flag (fflag == 202)Email IDb:/b {{userprofile.useremail}} /span I'm not sure what flag and fflag are all about so it's just a guess. On Friday, June 12, 2015 at 12:08:47 AM UTC-7, Kiran A wrote: i want to hide element based on the flag value.