ngx-placeholder-asterisk
v1.0.1
Published
Simple directive to add asterisk with space (' *') to input placeholder programatically
Downloads
12
Readme
NgxPlaceholderAsterisk
Simple directive to add asterisk followed by space (' *') to input placeholder programatically
Installation
npm install ngx-asterisk-placeholder --save
Usage
- Add module:
imports: [
// ...
AsteriskPlaceholderModule
],
- Use
asteriskPlaceholder
directive oninput
field - below it is used on only one (frist) of two inputs:
<input type="text" asteriskPlaceholder placeholder="First name">
<input type="text" placeholder="Last name">
- See results - first one has asterisk added:
Development
Development follows guide on Angular.io - https://angular.io/guide/creating-libraries
Build
Run npm run build
to build the project. The build artifacts will be stored in the dist/ngx-asterisk-placeholder
directory.
Contribute
Are you interested in contributing? Awesome! Fork, make change, commit and create pull request. I'll do my best to merge changes!