venzhyk / ng-bootstrap-form-generator Goto Github PK
View Code? Open in Web Editor NEWAngular 2 + Bootstrap 4 Form Generator. Library provides Angular components that help quickly generate Bootstrap Form from JavaScript object (CLOSED)
Angular 2 + Bootstrap 4 Form Generator. Library provides Angular components that help quickly generate Bootstrap Form from JavaScript object (CLOSED)
I'm trying to use ng-bootstrap-form-generator
in a multi-module Angular app.
I've imported BootstrapFormGeneratorModule
in the main AppModule
even though it isn't used there.
AppModule
imports a module called BootstrapModule
, which imports all the modules that have components in them.
BootstrapFormGeneratorModule
is in my EntryModule
, which has my login and register components. I've tried to use the form generator on my login form (EntryModule
also imports BootstrapFormGeneratorModule
).
The full code is available here: https://github.com/TheMagnificent11/LunchVoting/tree/feature/12_form-generator
This is the error I'm getting.
vendor.js:52783 Uncaught Error: Unexpected value 'BootstrapFormGeneratorModule' imported by the module 'AppModule'. Please add a @NgModule annotation.
at syntaxError (vendor.js:52783)
at vendor.js:66487
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (vendor.js:66470)
at JitCompiler._loadModules (vendor.js:77915)
at JitCompiler._compileModuleAndComponents (vendor.js:77888)
at JitCompiler.compileModuleAsync (vendor.js:77817)
at PlatformRef_._bootstrapModuleWithZone (vendor.js:16812)
at PlatformRef_.bootstrapModule (vendor.js:16798)
at Object.options.path (boot.browser.ts:23)
Do you know what I'm doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.