Skip to main content

Comment component

Comment Component

On of the components that is not part of @asol-platform/controls library.

Configuration

Module

Configure component in module (*.module.ts).

// app.module.ts

import { AsolPlatformCommentModule } from '@asol-platform/comment-component';
import { environment } from '../environments/environment';
import ...

@NgModule({
...
imports: [
// For this example is Comment component API URL located in environment
AsolPlatformCommentModule.forRoot(environment.commentURL)
],
...
})
export class AppModule {}
// environment.ts

// Example of URL for Comment Component
// Now it's part of Message Provider
export const environment = {
...
commentUrl: 'https://dev.avaspace.eu/api/asol/mp',
...
};

Usage in component template

Example of usage of comment component in component template which is part of module where you have configured (for example in app.module.ts).

<!-- *.component.html -->

<asol-platform-comment contentType="format"></asol-platform-comment>