Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about angularjs-ng-class

Read more about angularjs-ng-class

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - angularjs-ng-class

angular - how to combine few ngclass together in one div

I would like to combine multiple ngClass if else statement together, I have tried but not able to resolve it. <div [ngClass]="[tabItem === 'unavailable' ? 'background-grey' : selected ? '...
test-img

user7046311

typescript

angular9

ng-class

angularjs-ng-class

angular-ng-class

Votes: 0

Answers: 1

Latest Answer

I'm finally able to resolve the issue by using this method <div [ngClass]="{'banner': !!alerts?.length, 'no-banner' : !alerts?.length, 'background-grey': tabItem === 'unavailable', 'cursor': t...
test-img

user7046311

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved