Answer the question
In order to leave comments, you need to log in
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>
sendNameCarrotCal(event) {
this.full_name = event.target.value
if ( this.full_name.length > 3 ) {
carrotquest.identify({'$name': this.full_name}); // вот тут ругается на carrotquest, но это из оф. доки
}
}
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question