@ViewChild Property 'navbar' has no initializer and is not definitely assigned in the constructor. code example
Example: Property 'firstName' has no initializer and is not definitely assigned in the constructor
"angularCompilerOptions": {
// ...
"strictPropertyInitialization": false
// ...
}