-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support changing defaults - fixes issue #15 #17
Support changing defaults - fixes issue #15 #17
Conversation
- Added default empty string values for title and titleSuffix to avoid 'undefined' string - Added setDefaultTag for resetting defaults after the config stage - known issue: line 130: if resetting default titleSuffix from empty string, while title is not default, suffix is not appended (to avoid situation where non-default suffix is already set by state, and therefore having a double suffix)
…hould be omitted when using default title
Congratulations on creating your first PR :) A few points:
$rootScope.ngMeta.title = angular.isDefined(title) ? title : (defaults.title || ''); |
Thanks for your feedback!
Let me know what you think =) |
Thank you for your help. I appreciate it! |
…suffix should be omitted when using default title" This reverts commit a3bf88e.
- Fixed "undefined" title occurrence in setTitle function - Added currentRouteMeta which holds custom meta object specified in the current route/state - updated on readRouteMeta - updated also on setTitle and setTag (for when these are called after the route/state change) - Simplified setDefaultTag function
Hi again,
Thanks for your time and feedback, |
HI, Thanks for your input. It's interesting for me to learn how this library is being used :) Your solution of simply passing on the responsibility of determining which tag to keep/replace (the existing meta tag, if any, or the newly set default tag) is clever and accurate, but your implementation can be improved. I think I'll accept your PR and make changes based on that. |
No description provided.