I have a func which calling in ngDoCheck(). That func calls several another func who reassign my variable. But variable change does only in funcs, not a global variable. myVariable allways 0.
myVariable = 0;
ngDoCheck(): any {
const word: string = this.form.get('word').value;
this.PasswordStrengthMeter(word, this.myVariable);
console.log('Value: ' + this.myVariable);
}
Mainfunc(word: string, myVariable: number): any {
this.SecondaryFunc(word, myVariable);
this.AnotherSecondaryFunc(word, myVariable);
}
this.myVariable = this.SecondaryFunc