I am encountering an error that I can't seem to figure out.
compiler.js:2175 Uncaught Error: Can't resolve all parameters for ClauseListComponent: ([object Object], ?).
at syntaxError (compiler.js:2175)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:20399)
at CompileMetadataResolver._getTypeMetadata (compiler.js:20294)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.js:19923)
at CompileMetadataResolver._getEntryComponentMetadata (compiler.js:20494)
at compiler.js:20486
at Array.forEach ()
at CompileMetadataResolver._getEntryComponentsFromProvider (compiler.js:20485)
at compiler.js:20456
at Array.forEach ()
I've been attempting to utilize ngbModal and here's my progress so far.
clause.module.ts
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [ModuleListComponent,ClauseListComponent,ModifyClauseComponent],
imports: [
NgbModule
clauselist.html
<ng-template #content let-modal >
<div class="modal-header">
<h4 class="h4Header" id="modal-basic-title">Title</h4>
<button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Cross click')">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
CheckMate!
</div>
<div class="modal-footer">
<button mat-flat-button class="text-btn" (click)="modal.close('Save click')">ENROLL NOW</button>
<button mat-flat-button class="text-btn" (click)="modal.close('Save click')">Later</button>
</div>
</ng-template>
<button mat-flat-button class="primary-btn marR16" (click)="open(content)">Modal dialog</button>
and .ts file
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
constructor(private service : OfferClauseService,private modalService: NgbModal) { }
open(content) {
this.modalService.open(content,{windowClass:'custom_modal'})
}
tsconfig
"lib": [
"es2018",
"dom"
]
Seeking assistance! Feel free to ask if more clarification is necessary.