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

Ionic components - variable in variable, attribute variables

$
0
0

@didimmova wrote:

In my component.html I got this.

<ion-text>
    <h3 class="error-message purple">{{errorMessage}}</h3>

    <p class="error-text">
         {{errorText}}
    </p>
</ion-text> 

And I use it in the page as

<app-error-screen-centered
myErrorMessage="No matching profile"
myErrorText = "We’re sorry, no profile matches M49278-1. Please try again or visit Member Services for assistance."
></app-error-screen-centered>

So my question is how do i add in the ErrorText variable another variable for the member-id?
Is that possible or?

Another question is for example a button route, can I put a variable for an attribute?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



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