Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16120

Is there any way that this chat-application can work?

$
0
0

I am pretty new to Angular and was trying to build a simple chat application, without a backend or anything just trying to learn the framework and build a simple template. But after several hours, I am still getting the same error messages:✘ [ERROR] NG8001: 'router-outlet' is not a known element:

  1. If 'router-outlet' is an Angular component, then verify that it is part of this module.

  2. If 'router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. [plugin angular-compiler]

    src/app/app.component.html:0:0:0 │╵ ^

Error occurs in the template of component AppComponent.

src/app/app.component.ts:6:15:  6 │   templateUrl: './app.component.html',╵                ~~~~~~~~~~~~~~~~~~~~~~

I was trying to build two seperate pages, the chat-home (overview of all chats) and the chat-room(page to chat with one selected person where messages get actually sent).Here is the link to the github:https://github.com/tostrauss/chat-app


Viewing all articles
Browse latest Browse all 16120

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>