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
feat(menu): add injection token for overriding the default options #5483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, aside from typos (also needs a rebase). Apply label when ready.
src/lib/menu/menu-directive.ts
Outdated
@@ -29,6 +31,16 @@ import {Subscription} from 'rxjs/Subscription'; | |||
import {transformMenu, fadeInItems} from './menu-animations'; | |||
import {ESCAPE} from '../core/keyboard/keycodes'; | |||
|
|||
/** Default `md-menu` options that can be overriden. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: overriden
-> overridden
src/lib/menu/menu.spec.ts
Outdated
}).compileComponents(); | ||
})); | ||
|
||
it('should allow for the default menu options to be overriden', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: overriden
-> overridden
Adds a new injection token that allows the consumer to override the default values for the `xPosition`, `yPosition` and `overlapTrigger` options. Fixes angular#5479.
7e8d4b8
to
b15c577
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds a new injection token that allows the consumer to override the default values for the
xPosition
,yPosition
andoverlapTrigger
options.Fixes #5479.