Answer the question
In order to leave comments, you need to log in
Connecting cleave.js to an angular project is not a valid import. Where is the mistake?
Tell me where I'm wrong with connecting cleave.js to create masks in angular2+
The documentation indicates what needs to be installed using npm i -S angular-cleave
After installation, a folder appears in node_modules with contents that are not entirely clear to me
Next, you need to import the module import { CleaveDirective } from 'angular-cleave'
Here the question arises of where and why in the documentation exactly such a code to import?
The thing is that Angular cannot find this import and throws an error. The CleaveDirective class has also been added to @NgModule.
Where am I wrong?
Documentation link - link
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question