You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @AlexMiniApps, thanks for the component, it's lightweight and easy to use. In my app, there is a "Clear" button for users to easily clear the numbers and re-input again. Would you mind exposing this event?
@luongvanphuc Hello, thank you for using of the component. I will add such functionality. Currently you can use a workaround like to this:
in the template:
<code-input
...
[code]="code"
...
>
</code-input>
in the page:
public code?: string;
...
public reset(): void {
this.code = '';
setTimeout(() => this.code = undefined);
}
Activity
AlexMiniApps commentedon Feb 9, 2021
@luongvanphuc Hello, thank you for using of the component. I will add such functionality. Currently you can use a workaround like to this:
in the template:
in the page:
Added some features for resolving the issue #27
Release v 1.4.0:
AlexMiniApps commentedon Feb 9, 2021
@luongvanphuc Please install the new version. And follow the instructions:
https://github.com/AlexMiniApps/angular-code-input#methods
luongvanphuc commentedon Feb 9, 2021
Thanks @AlexMiniApps 💯