0

I am following a tutorial in Angular , the code works on Visual Studio but on Stackblitz.com, I have a message -> loading...

I don't understand why nothing isn't display? I just did a copy/paste. It works correctly on Visual Studio, I don't understand why it does not work on Stackblitz.com?

The dependencies are:

npm install bootstrap
npm i @ngx-translate/core --save
npm i @ngx-translate/http-loader --save

Here is the code:

https://stackblitz.com/edit/angular-ivy-4kkluf?file=src/app/app.component.html

Thank you a lot for your help.

Apoorva Chikara
  • 8,277
  • 3
  • 20
  • 35
elodie
  • 99
  • 1
  • 10

1 Answers1

2

A simple fix for you, You need to change the HTML selector in index.html. The selector you are using doesn't exist in your app, make the below change and it should work. app-root is your root component and my-app doesn't exist.

Index.html

<app-root>loading</app-root>
Apoorva Chikara
  • 8,277
  • 3
  • 20
  • 35