cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
371
Views
0
Helpful
0
Replies

Finesse gadget using Angular framework

mmiseric
Level 1
Level 1

Hello,

I ran across a problem while trying to create a Finesse gadget using Angular framework. 

I get the error message: "The selector "app-root" did not match any elements".

App root points to an html file containing only a <p> tag text so there should be no problems in the html file.

I put the code in the attachment.  

Thanks in advance.

EDIT: I also added the following code in the gadget.js file:

// Bootstrap Angular app 
var appRoot = document.querySelector("#app-root"); 
var ngModule = window.ng.core.NgModule({imports: [window.AppModule], bootstrap: [window.AppRootComponent]}); window.ng.platformBrowserDynamic.platformBrowserDynamic().bootstrapModule(ngModule);

and added the "app-root" id to the <app-root> angular element however still no luck.

 

0 Replies 0