Comments (4)
Hi,
Have you loaded the InputTextModule in the closest parent module of the component?
from angular-admin-lte.
Hi,
Yes, InputTextModule is loaded in the same module file that InputGroupModule is loaded but only and isn't working.
I'm using version 1.3.2.
from angular-admin-lte.
This is beacause mk-input-text-label does not exists and mk-input-text is a directive
Use it like this:
<form [formGroup]="userForm" (ngSubmit)="onSubmitForm()">
<mk-input-group inputErrorColor="warning">
<mk-input-group-label>Input icons</mk-input-group-label>
<mk-input-group-addon-left>@</mk-input-group-addon-left>
<mk-input-group-addon-right><i [ngClass]="userForm.invalid ? 'fa fa-times' : 'fa fa-check'"></i></mk-input-group-addon-right>
<mk-input-group-content>
<input mkInputText formControlName="firstName" class="form-control"/>
</mk-input-group-content>
</mk-input-group>
<br />
<button type="submit" [disabled]="userForm.invalid" class="btn btn-primary">Submit</button>
</form>
then in the component:
userForm: FormGroup;
constructor(private formBuilder: FormBuilder) {}
ngOnInit() {
this.userForm = this.formBuilder.group({
firstName: ['', [Validators.required, Validators.email]]
});
}
onSubmitForm() {
console.log(this.userForm);
}
from angular-admin-lte.
Oh, i get it.
I was trying to use the commented code in input demo.
Thanks.
from angular-admin-lte.
Related Issues (20)
- Disable sidbare-left HOT 2
- How to hide item in menu left HOT 6
- add routering animation? HOT 2
- Footer keep staying up HOT 5
- build error HOT 1
- here have problem after set 'layout':'fixed' HOT 3
- got an error when i used HTTP request HOT 2
- Bootstrap Model Not working HOT 1
- Current menu not selected HOT 1
- Sidebar menu collapse when children item is clicked HOT 2
- Error MaterialComponent HOT 3
- how to add modal? HOT 2
- Left Sidebar menu doesnt work
- How to add custom menu options in side bar once Layoutmodule is loaded? HOT 1
- How to set user name after login on side bar and header HOT 1
- Error with Sidebar when it's Mini mode HOT 3
- What's step for update angular 9? HOT 4
- how to change icons that collapse sidebars? HOT 1
- Version Error HOT 1
- Angular 11 problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-admin-lte.