Hi Sander, Thanks for the answer :) The other way that I made it work is through calling a js function, that computes the value.
Regards, Rakesh On Thursday, September 20, 2018 at 2:39:44 PM UTC+2, Rakesh wrote: > > Hello Folks, > > I'm quite new to Angularjs and having some trouble achieving element > binding. Any help is highly appreciated. Below is the code: > > <mdl-textfield floating-label label="Memory" #memory > formControlName="memory" > pattern="[0-9]*" error-ms="Must be a number" > type="text"></mdl-textfield> > > <mdl-textfield floating-label label="Size" #size > formControlName="size" > pattern="[0-9]*" error-ms="Must be a number" > max=memory.value/2 > type="text"></mdl-textfield> > > What I want to achieve is: the max field for the "size" textfield should > be assigned with half the value of "memory" textfield. The current > implementation doesn't work. Can someone provide some hints on how to > achieve this. I was also looking to achieve the same through ngModel > concept, but didn't succeed. > > Cheers, > Rakesh > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
