angular-fontawesome
angular-fontawesome copied to clipboard
Feature request: Add option for soft vs hard icon missing error
Describe the problem you'd like to see solved or task you'd like to see made easier
When an icon reference is missing, and you try to use that icon in markup, it will crash an Angular component.
I'd like an option to use a soft versus hard error. So that the function faWarnIfIconDefinitionMissing would either do a console.error or throw a new Error.
Is this in relation to an existing part of angular-fontawesome or something new?
It's related to Fort Awesome checking if an icon reference has been added.
What is 1 thing that we can do when building this feature that will guarantee that it is awesome?
It will make it awesome by ensuring the stability of an application's functionality in the event of a missing icon.
Why would other angular-fontawesome users care about this?
Others might care about this because right now a missing icon will crash a component. Others, like myself might prefer a component run without finding an icon, than crash because it can't find it.
On a scale of 1 (sometime in the future) to 10 (absolutely right now), how soon would you recommend we make this feature?
8 - because it should be relatively easy to implement, it's just adding an option for how the existing faWarnIfIconDefinitionMissing function operates.
Feature request checklist
- [x] This is a single feature (i.e. not a re-write of all of Font Awesome)
- [x] The title starts with "Feature request: " and is followed by a clear feature name (Ex:
Feature request: moar cowbell
) - [x] I have searched for existing issues and to the best of my knowledge this is not a duplicate