Skip to content

Commit

Permalink
I'm not sure if this is correct, but in my tests without some of this…
Browse files Browse the repository at this point in the history
… modification I get an error.
  • Loading branch information
khayo authored May 30, 2024
1 parent 0da7497 commit e83e57c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/showcase/doc/configuration/cspdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { PrimeNGConfig } from 'primeng/api';
export class CspDoc {
code: Code = {
basic: `constructor(private primengConfig: PrimeNGConfig) {
this.config.csp.set({nonce: '...'});
this.primengConfig.csp.set({nonce: '...'});
}
`
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/showcase/doc/configuration/filtermodedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class AppComponent implements OnInit {
constructor(private primengConfig: PrimeNGConfig) {}
ngOnInit() {
primengConfig.filterMatchModeOptions = {
this.primengConfig.filterMatchModeOptions = {
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
Expand Down
4 changes: 2 additions & 2 deletions src/app/showcase/doc/configuration/locale/setlocaledoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import { PrimeNGConfig } from 'primeng/api';
})
export class AppComponent implements OnInit, OnDestroy {
constructor(private config: PrimeNGConfig) {}
constructor(private primengConfig: PrimeNGConfig) {}
ngOnInit() {
this.config.setTranslation({
this.primengConfig.setTranslation({
accept: 'Accept',
reject: 'Cancel',
//translations
Expand Down

0 comments on commit e83e57c

Please sign in to comment.