@angular/flex-layout
Advanced tools
Changelog
7.0.0-beta.22 (2018-12-19)
Used for extra styling more easily at build time (instead of runtime with the HTML API), this feature (sass mixin) allows developers to generate and include Layout mediaQuery css to their own stylesheets.
NOTE: This feature is marked as experimental and is subject to change unless posted otherwise. To use, import the new SASS file as follows:
@import '~@angular/flex-layout/mq';
// This translates to (min-width: 0) and (max-width: 599px) {}
@include layout-bp(xs) {
background-color: red;
}
Feedback on this feature is very much welcome, and we are open to adding additional functionality based on user interest.
<a name="7.0.0-beta.21"></a>
Changelog
Changelog
7.0.0-beta.20 (2018-12-14)
Beta 20 brings about numerous, high-visibility improvements to the library with very minimal API changes. These include:
With the introduction of StyleBuilder
s, users now have the flexibility to augment or replace our style generation algorithms. They also allow us to memoize style generation to improve performance. With the introduction of MediaMarshaller
, we are able to dramatically reduce the size and complexity of the library and improve the usability of custom breakpoints.
ObservableMedia
is now deprecated in anticipation of RxJS v7.
The new API is called MediaObserver
, and provides the exact same functionality as ObservableMedia, except you cannot directly subscribe to it,Developers should subscribe to MediaObserver's media$
property; in place of subscribing directly to ObservableMedia.
<a name="7.0.0-beta.19"></a>
Changelog
Changelog
5.0.0-beta.15 (2018-06-05)
<a name="5.0.0-beta.14"></a>
Changelog
6.0.0-beta.16 (2018-06-07)
With Beta 16, we have added support + API for CSS Grid. Now @angular/flex-layout supports both Flexbox and CSS Grid layouts.
lib: * Four configuration tokens have been removed:
ADD_FLEX_STYLES
ADD_ORIENTATION_BREAKPOINTS
DISABLE_DEFAULT_BREAKPOINTS
DISABLE_VENDOR_PREFIXES
These tokens have been consolidated into a new configuration token:
LAYOUT_CONFIG
The default column flex-basis has been reverted to 1e-9px
. To
have that value be auto
instead, set the config in your top-level
module as follows:
FlexLayoutModule.withConfig({useColumnBasisZero: false})
<a name="6.0.0-beta.15"></a>
Changelog