0.0.4 • Published 5 years ago
@gmsca/ngdivolte v0.0.4
Add Divolte to your project
- setup environment to angular 8 project.
all divolta related source code will be added.ng add @gmsca/ngdivolte
- modify the
divolte.js
position inenvironment.ts
file.export const environment = { divolteUrl: '<your divolte.js location>/divolte.js', ... };
Try it
find a html file for testing, like
app.component.html
. create a button element withappInputTracker
directive.<button appInputTracker>any button</button>
also, add a
eventName
<button appInputTracker eventName="next">any button</button>
if the divolte backend is running, click the button, then receive a json data.