I wish to add a class name to NG2 directive in order to apply CSS rules on it. Given the following component:
@Component({
  moduleId: module.id,
  selector: 'search-form',
  templateUrl: 'search-form.component.html',
  styleUrls: [ 'search-form.component.css']
})
I tried this:
search-form {
  width:100%;
  display:block;
}
But it did not work.
How can I add a class to search-form ?
 
     
     
    