-
Notifications
You must be signed in to change notification settings - Fork 771
feat: switch to CDK BreakpointsObserver #685
Comments
@ThomasBurleson : we are currently updating to Angular 5 and want to test custom breakpoints. One thing which worries us is a possible dependence of material2 due to all of the overhead which comes with this and CDK. Can you give feedback which major dependencies are planned in the future for the use of custom breakpoints? Thanks. |
@MarcusMorba Only the CDK is a necessary dependency, due to the use of the CDK's Directionality service (and possibly their Layout service in the future). A dependency on Material is unlikely because it's only a collection of components with Material stylings, which is unnecessary for our agnostic layout library. |
Thanks for your feedback. |
Does this mean that we can use the BreakpointObserver to control fxFlex properties? |
@mackelito You might want to think about using the orientation breakpoints provided by this library. This will mostly be an internal-only change, meant specifically to reduce the size of the library source code (and duplicate code between Flex Layout and the CDK) |
@CaerusKaru I did take a look at it last night... sure I could use that.. just that we use the CDK implementation in several other places.. always looking for ways to be more consistent ;) |
This would be amazeballs. @CaerusKaru are you planning this for a near future? |
@angular/cdk BreakpointObserver will not replace `MediaObserver`. **MediaObserver** is an enhanced version that notifies subscribers of activations for standard AND **overlapping (lt-xxx, gt-xxx)** breakpoints. * Ensure standard breakpoints mediaQueries are aligned with those in the CDK * Update MediaObserver * isActive() enhanced to support list of aliases to determine if any match * properly disconnects subscribers when destroyed > Note: Developers should use MediaObserver (not use MatchMedia) service to observe breakpoint activations! MediaObserver is the recommended service to use for application developers; MatchMedia should be considered a private service. Fixes #685. Refs #1001.
We are adding the following enhancements to @angular/flex-layout:
|
@angular/cdk BreakpointObserver will not replace `MediaObserver`. **MediaObserver** is an enhanced version that notifies subscribers of activations for standard AND **overlapping (lt-xxx, gt-xxx)** breakpoints. * Ensure standard breakpoints mediaQueries are aligned with those in the CDK * Update MediaObserver * isActive() enhanced to support list of aliases to determine if any match * properly disconnects subscribers when destroyed > Note: Developers should use MediaObserver (not use MatchMedia) service to observe breakpoint activations! MediaObserver is the recommended service to use for application developers; MatchMedia should be considered a private service. Fixes #685. Refs #1001.
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. |
We need to migrate to the CDK's layout engine. This means the following:
Switch to usingBreakpointsObserver
inMediaMonitor
ObservableMedia
/MediaService
MatchMedia
BreakpointsObserver
andMediaMatcher
The text was updated successfully, but these errors were encountered: