title: What does putting [ngClass]="class"and [ngStyle]="style" do to an element when creating a component
body: <p>I am new to Angular and while I was studying some angular code online (how to make a component), I stumbled upon this : </p>
  
  <pre><code>  @Component({
    selector: 'app-okra-button',
    template: `&lt;button [ngClass]="class" [ngStyle]="style" (click)="pay()"&gt;Init Okra&lt;/button&gt;`,
  })
  </code></pre>
  
  <p>but I do not understand the use of <code>[ngClass]="class" [ngStyle]="style"</code> used in the button template. What does it do ?</p>