To do these UI changes you’ll have to copy contents from the sources into your Angular app. Let me create a sample app and show what should be changed.
Create a minimal Angular app for simplicity with ng new viewer-app --minimal (select Less stylesheet format in wizard)
Navigate to folder with the app cd viewer-app
Install Angular Viewer package npm i @groupdocs.examples.angular/viewer
Update app.module.ts file to
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { AppComponent } from './app.component';
import { ConfigService } from '@groupdocs.examples.angular/common-components';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { ViewerModule, ViewerTranslateLoader } from '@groupdocs.examples.angular/viewer';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
export function configServiceFactory() {
let config = new ConfigService();
config.apiEndpoint = "http://localhost:8080"; // set your api endpoint
return config;
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
ViewerModule,
FontAwesomeModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: ViewerTranslateLoader
}
})
],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
{
provide: ConfigService,
useFactory: configServiceFactory
},
],
bootstrap: [AppComponent]
})
export class AppModule { }