Hi Rakesh,
try:
<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>
by using the square brackets, you let Angular do the heavy lifting. See the
docs. <https://angular.io/guide/template-syntax>
Regards
Sander
--
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.