This repository was archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Standardizing error messages from directives in the console #88
Labels
Comments
For me all good |
Looks nice. Should we consider this kind of validation for every typed/enumerated option, e.g. in spinner component I can have following logic:
Should I then consider only |
Looks good to me too. We will probably need more validation. |
@jjczopek Personally I think so... anything that has deterministic options, if one out-of-bounds thing is thrown, it should throw an error in the log. |
👍 |
andrewconnell
added a commit
that referenced
this issue
Jan 15, 2016
A new enum is used to verify the specified icon is supported by Office UI Fabric. When an invalid icon is specified, an error is logged to the console. This update also includes a new TypeScript demo. ref #88
closing the loop... used angular's |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm adding some logic to the 'uif-icon' directive to check if the developer requested an invalid icon that isn't supported within the fabric fonts. If they didn't I'm logging an error to the console... Which brings up: how should we standardize this?
Long term I like how angular does it where they link to their site, but that's long term. I think now we just do something like:
'''
Error [ngOfficeUiFabric] fully-qualified-module - error summary: error detail (see more: link to MD file in master branch of repo located within the directive's folder / beside the directive itself)
'''
Seeking input @ngOfficeUIFabric/ngofficeuifabric-members
The text was updated successfully, but these errors were encountered: