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

Is it possible use *ngIf with jQuery?

$
0
0

@CHAEN wrote:

I have make two select Box.
Using ngif, jquery does not work. How can it work?

this is my code

  1. html
<div *ngIf="game=='nintendo switch' || game=='Playstation Pro'">
     <select id="peripheral" class='peribox' style="margin-top:5px; border: solid 1px black"><option id="p" value="no">no</option>  
        <option id="p" value="{{p.name}}" *ngFor="let p of peripheral">{{p.name}}</option>
     </select>
  1. ts
 $(document).ready(() => {
          $('#peripheral').change((m) => {
            console.log(m.target.value)
          });
    })

Can I used *ngIf with jQuery?
help me ;(

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



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