Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70936

Can i remove the helperText depending on conditions?

$
0
0

Hello,

I have an issue with the helperText and also errorText, currently i have in a ion-input the following:

                errorText="{{
                          'modal.label'
                            | translate
                        }}"
                helperText="{{
                          'modal.label2'
                            | translate
                        }}"

Where I use translations from @ngx-translate/core, but in this page I have a boolean variable called isEditMode. Is there a way to remove the helper and error Text in case the isEditMode is true?

I tried doing something like:

               [helperText]="isEditMode ? 'label1' : ''"

But i can’t seem to be able to add the translations {{ ‘modal.label2’ | translate}}.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>