Hi Guys,
I have not been able to find how to integrate this platform into an angular application. It is not will stated here
Please who can help?
Thanks.
Hi Guys,
I have not been able to find how to integrate this platform into an angular application. It is not will stated here
Please who can help?
Thanks.
Welcome to GroupDocs.Total Forum!
To get started please check all the available components at NPM in the @groupdocs.examples.angular scope.
Let me list the basic steps of integrating Viewer component in an Angular app (the complete angular app is attached in viewer-component-integration.zip (122.1 KB)
npm i @groupdocs.examples.angular/viewer
app.module.ts
file toimport { NgModule } from '@angular/core';
import { APP_BASE_HREF } from '@angular/common';
import { AppComponent } from './app.component';
import { ConfigService } from '@groupdocs.examples.angular/common-components';
import { ViewerModule } from '@groupdocs.examples.angular/viewer';
export function configServiceFactory() {
let config = new ConfigService();
config.apiEndpoint = "http://localhost:8080"; // set your api endpoint
return config;
}
@NgModule({
declarations: [
AppComponent
],
imports: [
ViewerModule
],
providers: [{ provide: APP_BASE_HREF, useValue: '/' },
{
provide: ConfigService,
useFactory: configServiceFactory
},
],
bootstrap: [AppComponent]
})
export class AppModule { }
app.component.ts
file toimport { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `<gd-viewer></gd-viewer>`,
styles: []
})
export class AppComponent { }
ng serve
and navigate to http://localhost:4200/
dotnet run
You can find more integration examples in Demo projects
Feel free to ask any additional questions!