-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lib): rework loadingSuccess and loadingError outputs to inputs (p…
…ass in handler) - the outputs don't work on * based structural directives - desugared ng-template based syntax doesn't work for this use case (retrieve tag, ...)
- Loading branch information
1 parent
1283dae
commit 40e2058
Showing
4 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,13 @@ export class BasicComponent { | |
onSliderChange(value: number) { | ||
this.xAxis = [-value, value]; | ||
} | ||
|
||
customLoadingErrorHandler(error: ErrorEvent) { | ||
console.log( | ||
'[Optional custom loading error handler] Loading failed:', | ||
error, | ||
); | ||
} | ||
} | ||
|
||
const CODE_EXAMPLE_1 = `<!-- url = 'https://unpkg.com/@material/[email protected]/mwc-icon.js?module'; --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters