I encountered an issue while attempting to append a component to the DOM. The error message displayed was "Can't resolve all parameters for SiteNotificationComponent: (?).at syntaxError."
My goal was to insert HTML content by invoking showNotification() within the div('single-pane') in another component.
Below is my note.component.ts
import { Component, OnInit, ElementRef, ViewChildren, ViewChild, QueryList } from '@angular/core';
import {NotificationsService} from '../cid-site-notification.service';
import { Subscription } from 'rxjs/Subscription';
import { CidSiteNotificationModel} from '../cid-site-notification.model';
@Component({
selector: 'cid-site-notification',
templateUrl: './site-notification.component.html',
styleUrls: ['./site-notification.component.css']
})
export class SiteNotificationComponent implements OnInit {
// component code goes here
}
/*
rest of the original text remains as is for brevity
*/