I'm new to angular and I had this problem last 2 day on how to concatenate dynamic class name in angular 2. Like this code in react.js className=this-is-a-str${isFoo? 'add this' : 'then this'} something like that in angular. heres my code in anguar.
[className]="getDesignStatus(design).hasError ? 'project--btn btn btn-action btn-danger-invert col-md-3 col-lg-3' : 'project--btn btn btn-action btn-primary-invert col-md-3 col-lg-3'"
the string that only changing is these 2 btn-danger-invert && btn-primary-invert