Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-css-flex-layout
Advanced tools
A (temporary) solution for @angular/flex-layout problems in server-side rendering
A (temporary) solution for @angular/flex-layout problems (#373) in server-side rendering.
The awesome angular flex-layout module, currently doesn't work correctly on server platform. Because responsive api is built purely in js and there are inherent non-trivial problems in determining media size in server. While this pure js approach has certain advantages, one big advantage of old css based approach (with media queries) is not having any issue with SSR.
If you are using flex-layout directives throughout your application and you want to render
your app on server now, and you can't wait until the SSR issue is resolved, you can
give angular-css-flex-layout a shot. Assuming the SSR problems will be fixed in the original
repo sooner or later, angular-css-flex-layout aims to have as less footprint as
possible. Directives are implemented with selectors identical to FlexLayoutModule
directives, and all they do is to add corresponding css classes of
AngularJS Material Flex Layout. So you only need to import CssFlexLayoutModule
instead of FlexLayoutModule
, and add angular-material.layouts.css
to your styles.
In your module:
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
// import {FlexLayoutModule} from '@angular/flex-layout';
import {CssFlexLayoutModule} from 'angular-css-flex-layout';
@NgModule({
imports: [
CommonModule,
CssFlexLayoutModule // instead of FlexLayoutModule
]
})
export class AppModule { }
And in your styles (styles.scss
if you are using angular cli):
@import '~angular-material/modules/layouts/angular-material.layouts.css';
FAQs
A (temporary) solution for @angular/flex-layout problems in server-side rendering
The npm package angular-css-flex-layout receives a total of 0 weekly downloads. As such, angular-css-flex-layout popularity was classified as not popular.
We found that angular-css-flex-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.