0.0.4 • Published 4 years ago

@gmsca/ngdivolte v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Add Divolte to your project

  1. setup environment to angular 8 project.
    ng add @gmsca/ngdivolte
    all divolta related source code will be added.
  2. modify the divolte.js position in environment.ts file.
    export const environment = {
      divolteUrl: '<your divolte.js location>/divolte.js',
      ...
    };
  3. Try it

    • find a html file for testing, like app.component.html. create a button element with appInputTracker directive.

      <button appInputTracker>any button</button>
    • also, add a eventName

      <button appInputTracker eventName="next">any button</button>
  4. if the divolte backend is running, click the button, then receive a json data.