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

How to binding a attribute

$
0
0

@maiernte wrote:

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>

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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