I started a project with Angular but I never thought that install the most recent version of it would bring me a couple of problems. I am also using Materialize so when I try to 'import' its Javascript file it doesn't work. I don't know why, I was looking for an answer since the past Friday but I found nothing.
I have changed the angular.json file and referenced my JS location in it but it doesn't was sufficient.
P.D. I must not use the CDN for materialize JS.