Angular 7 Typeerror Is Not A Function