From e363fc304d9ba6c75e062135060b076f1b3dfcb0 Mon Sep 17 00:00:00 2001 From: zefling Date: Thu, 3 Aug 2017 01:03:02 +0200 Subject: [PATCH] Little change in demo, but I always this error - Uncaught Error: Can't resolve all parameters for t: (?, ?, ?, ?, [object Object]). --- demo/angular/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/angular/index.ts b/demo/angular/index.ts index c517cb9..9538435 100644 --- a/demo/angular/index.ts +++ b/demo/angular/index.ts @@ -117,13 +117,14 @@ export class MainComponent { } import { NgModule } from "@angular/core"; +import { CommonModule } from '@angular/common'; import { BrowserModule } from "@angular/platform-browser"; -import { FormsModule } from "@angular/forms"; +import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { Select2Module, Select2Option, Select2Data } from "../../dist/angular"; @NgModule({ - imports: [BrowserModule, FormsModule, Select2Module], - declarations: [MainComponent, Select2Module], + imports: [BrowserModule, CommonModule, FormsModule, ReactiveFormsModule, Select2Module], + declarations: [MainComponent], bootstrap: [MainComponent], }) class MainModule { }