Error: Uncaught (in promise) during Loading function implementation

Error: Uncaught (in promise): TypeError: Cannot read property 'nativeElement' of undefined

Everything works well in my code. When I added the Loading part, it started throwing me the exception. But, I’m getting the desired output. But, can I proceed further with my apk or should I resolve it by any means? If so, please help.