Ionic 2: How to add Class from Controller

Viewed 6153

How to add dynamic Class to BODY from Controller in Ionic 2? My code:

import { Component } from '@angular/core';

@Component({
  templateUrl: 'pages.html'
})
export class PagesPage {

  constructor() {

  }

  addClass() {

    //This ADD CLASS in tag BODY

  }

}
1 Answers
Related