1.3.1 • Published 1 month ago

userpilot v1.3.1

Weekly downloads
21,009
License
USERPILOT LIMITED...
Repository
-
Last release
1 month ago

How to use

Initialize

In your module.ts file import userpilot and initialize with your app token

import { Userpilot } from 'userpilot'
Userpilot.initialize('< your app token >');

Identify User

// .....

import { Userpilot } from 'userpilot'

// .....

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {

  // .....

  login() {
    this.loginService.login(this.form.value).then((user) => {

      Userpilot.identify(user.id, {name: user.firstName, email: user.email,created_at: user.signedUp});

      // ....

    }).catch((err) => {

    });
  }

}

For more information about Userpilot API please visit https://docs.userpilot.com/article/61-javascript-api

1.3.1

1 month ago

1.3.0

3 months ago

1.2.9

7 months ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago