You can use attribute selectors
@Component({
selector: '[myTd]'
...
})
and then use it like
<td myTd></td>
More Related Contents:
- typescript anonymous object with variable based label value
- How to pass parameters rendered from backend to angular2 bootstrap method
- CORS Error: “requests are only supported for protocol schemes: http…” etc
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Hot and Cold observables: are there ‘hot’ and ‘cold’ operators?
- Using http rest apis with angular 2
- Angular 2: How to detect changes in an array? (@input property)
- Angular 2 dependency injection in ES5 and ES6
- Typescript Type ‘string’ is not assignable to type
- Angular 2 Karma Test ‘component-name’ is not a known element
- How do I call an Angular 2 pipe with multiple arguments?
- How to do the chain sequence in rxjs
- Angular 6: How to set response type as text while making http call
- using external JS libraries in my angular 2 project
- Huge number of files generated for every Angular project
- Is it a good practice using Observable with async/await?
- Angular 2 Material 2 datepicker date format
- Angular 2 Component @Input not working
- Highlight the search text – angular 2
- angular 4+ assign @Input for ngComponentOutlet dynamically created component
- Dynamic template in templatURL in angular2
- How to loop over object properties with ngFor in Angular
- Converting an image to base64 in angular 2
- Angular2 – catch/subscribe to (click) event in dynamically added HTML
- Get current url in Angular [duplicate]
- Upgrading to Angular 10 – Fix CommonJS or AMD dependencies can cause optimization bailouts
- ng2-charts update labels and data
- How to disable Browser back button in Angular 2
- Filter Array in Array by date between 2 dates
- Protractor Angular 2 Failed: unknown error: angular is not defined