Skip to content

Commit db19f6c

Browse files
committed
chore(symbol): better explanation for breaking changes
1 parent 8faad93 commit db19f6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

projects/ngx-scrolltop/src/lib/ngx-scrolltop.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ export class NgxScrollTopComponent {
1515
@Input() public backgroundColor: string;
1616
@Input() public symbolColor: string;
1717
@Input() public size: number;
18-
@Input() public set symbol(value: string) {
18+
@Input() public set symbol(symbol: string) {
1919
console.error(
20-
'NgxScrollTop: Symbol input `[symbol]="\'↑\'"` is deprecated.\n\r Use `Content projection` instead. E.g. <ngx-scrolltop>↑</ngx-scrolltop>.\n\r More info: https://github.com/bartholomej/ngx-scrolltop#symbol'
20+
`NgxScrollTop: You are trying to set \`${symbol}\` as your symbol but Input \`[symbol]="\'↑\'"\` is deprecated now.\n\r`,
21+
`Use \`Content projection\` method, like this:\n\r\n\r`,
22+
`<ngx-scrolltop>${symbol}</ngx-scrolltop>\n\r\n\r`,
23+
`More info: https://github.com/bartholomej/ngx-scrolltop#symbol`
2124
);
2225
}
2326
@Input() public position: NgxScrollTopPosition = 'right';

0 commit comments

Comments
 (0)