Is it possible to add ng-select and ng-option in Angular using typescript? I am unsure because ng-select is a component that is not rendered. How can I get this functionality to work?
@Component({
selector: 'app-testing',
templateUrl: './app-testing.component.html',
styleUrls: ['./app-testing.component.scss']
})
export class TestCompontnt implements OnInit {
ngOnInit() {}
example(type: string) {
return `
<table class="table table-striped table-bordered table-hover table-checkable middle-align-table">
<thead>
<tr>
<th style="width: 40%">TT</th>
<th>TT2</th>
</tr>
</thead>
<tbody>
<td>okej</td>
<td>
<div class="input-group">
<input type="number" class="form-control">
<div class="input-group-append">
<ng-select>
<ng-option value="TEST">TEST</ng-option>
</ng-select>
</div>
</div>
</td>
</tbody>
</table>
`;
}
}
I attempted to include a dropdown menu in a dynamic component.