Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228648

How to binding a attribute

$
0
0

Takt this example

<ion-row responsive-sm>
   ......
</ion-row>

I want to bind the Attribute "responsive-sm" to property of the class:

class {
   Response = true

   changeModel(){
      this.Respone = !this.Respone;
   }
}

With that code not working.

<ion-row [attr.responsive-sm]="Response">
    ......
</ion-row>

Viewing all articles
Browse latest Browse all 228648

Trending Articles



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