Answer the question
In order to leave comments, you need to log in
Why is the code not displayed everywhere?
Hello, the essence is this:
I am developing a mobile application on IONIC, and here is a code that displays a vip picture in the messages tab near the user's nickname, if he has one.
The code
<img src="https://image.flaticon.com/icons/svg/263/263399.svg" width="15px" ng-if="p.premium == 1">
Answer the question
In order to leave comments, you need to log in
And what about PHP? The p.premium
variable is obviously not equal to one elsewhere.
The application code needs to be improved.
I agree with the previous speaker, most likely, equality is not respected. To know for sure, paste the additional code and you will see
<img src="https://image.flaticon.com/icons/svg/263/263399.svg" width="15px" ng-if="p.premium == 1">
=={{p.premium}}!!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question