Answer the question
In order to leave comments, you need to log in
ERROR TypeError: Cannot read property 'jquery' of undefined how to win?
I am doing a study project. Stupidly according to the instructions. I'm trying to display errors using the materialize-css library. I work with Angular.
I connect through a static method in the class.
declare var M
export class MaterialService {
static toast(message: string) {
M.toast({html: message});
}
}
Answer the question
In order to leave comments, you need to log in
At the end of the line with an error is written where it occurred.
And you can click on this link.
You have some variable not defined there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question