You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
There have been some recent refactorings in angular/angular that change NgClass and other directives to use Renderer2 instead of Renderer. While this change is transparent to the public API of Angular, it is still a change that causes issues to code that extends the base directives that Angular has to offer.
With flex-layout, the NgClass, NgStyle and other directives are extended. This is an anti-pattern and isn't encouraged by Angular itself. Therefore there are two things that need to be changed in flex-layouts so that it's compatible with future versions of Angular.
Use Renderer2 instead of Renderer
Do not extend the Angular base directives, but instead inject them into the constructor.
Once this code changes have been made then flex-layouts can work with both Angular4 and Angular5.
The text was updated successfully, but these errors were encountered:
* Use Renderer2 instead of Renderer
* Do not extend the Angular base directives, but instead inject them into the constructor.
* improve support for future releases of Angular 5
Fixes#326.
* Use Renderer2 instead of Renderer
* Do not extend the Angular base directives, but instead inject them into the constructor.
* improve support for future releases of Angular 5
Fixes#326.
* Use Renderer2 instead of Renderer
* Do not extend the Angular base directives, but instead inject them into the constructor.
* improve support for future releases of Angular 5
Fixes#326.
* fix(api): getDisplayStyle() defaults to 'inline'
* refactor(api): use Renderer2 instead of Renderer
* Use Renderer2 instead of Renderer
* Do not extend the Angular base directives, but instead inject them into the constructor.
* improve support for future releases of Angular 5
Fixes#326.
There have been some recent refactorings in angular/angular that change NgClass and other directives to use Renderer2 instead of Renderer. While this change is transparent to the public API of Angular, it is still a change that causes issues to code that extends the base directives that Angular has to offer.
With flex-layout, the NgClass, NgStyle and other directives are extended. This is an anti-pattern and isn't encouraged by Angular itself. Therefore there are two things that need to be changed in flex-layouts so that it's compatible with future versions of Angular.
Once this code changes have been made then flex-layouts can work with both Angular4 and Angular5.
The text was updated successfully, but these errors were encountered: