D
D
Darkness2019-06-27 13:33:54
JavaScript
Darkness, 2019-06-27 13:33:54

How to make blur for Carrot quest in Angular?

Good afternoon!
The manager said to integrate with the carrotQuest service, but this was the first time I got acquainted with it.
I went along the dock, found it in the dock to hang the event. Question: how can I make ts not yell at carrotquest , since that is their method to pass. If without it, but with console.log, then what I need happens.
Here is the html:

<input type="text" placeholder="Ваше имя" [(ngModel)]="mail.full_name" id="nameAfterCal"  (blur)="sendNameCarrotCal($event)" name="full_name" (input)="nameValid($event)" required>

blur event :
sendNameCarrotCal(event) {
    this.full_name = event.target.value

    if ( this.full_name.length > 3 ) {
      carrotquest.identify({'$name': this.full_name}); // вот тут ругается на carrotquest, но это из оф. доки
      }
  }

Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-06-27
@Xuxicheta

declare var carrotquest: any;
it is possible in carrotquest.d.ts it is possible directly in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question