Answers for "add style in angular component"

0

ng style

<some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
Posted by: Guest on January-02-2021
1

ng-deep

::ng-deep{
	// some css
}
Posted by: Guest on August-27-2020
0

styles in angular component

@Component({
  selector: 'app-root',
  template: `
    <h1>Tour of Heroes</h1>
    <app-hero-main [hero]="hero"></app-hero-main>
  `,
  styles: ['h1 { font-weight: normal; }']
})
export class HeroAppComponent {
/* . . . */
}
Posted by: Guest on April-06-2021
0

css code in angular

content_copy
      
      :host {
  display: block;
  border: 1px solid black;
}
Posted by: Guest on February-02-2021

Code answers related to "add style in angular component"

Browse Popular Code Answers by Language