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

How to check the result value in template?

$
0
0

@anespa wrote:

Friends,

I try to show “No search result” when result is null using

<div *ngIf="result?.value == null">
          <h2>Search results</h2>
        No search results , please try
      </div>

But it’s not work…

in my controller when the Search return no result shows : ‘null’ value as alert.
My need is before submitting form no need to show “No Search results, please try” message but after search and no result show same…

Please advise . I am using ionic 3…

Anes

Posts: 11

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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