Property ‘carousel’ has no initializer and is not definitely assigned in the constructor

The solution for “Property ‘carousel’ has no initializer and is not definitely assigned in the constructor” can be found here. The following code will assist you in solving the problem.

@ViewChild(‘carousel’, {static : true}) carousel!: NgbCarousel;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in