Skip to content

Conversation

@Stoffel-KT
Copy link

In version 2.0.1, the icon input on fa-icon was marked as required using Angular's model.required().

This PR makes the icon input optional again, to support use cases where the icon is assigned dynamically via a custom directive or service at runtime. These patterns are useful for maintaining clean templates and centralizing icon configuration.

Since the library already provides a runtime check (faWarnIfIconSpecMissing()), compile-time enforcement may be overly restrictive for some scenarios.

This change restores flexibility while maintaining runtime safety.

Let me know if you'd prefer a different approach or additional test coverage. Happy to adjust as needed!

Closes #475

@devoto13 devoto13 merged commit 11dfd8f into FortAwesome:main Aug 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Make icon a not required input again

2 participants