
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
angular-2-local-storage
Advanced tools
LocalStorageService for Angular 2 with mostly the same API (and most of the code) from angular-local-storage
LocalStorageService for Angular with mostly the same API (and most of the code) from angular-local-storage.
AoT compatible.
errors$
, removeItems$
, setItems$
and warning$
if you really need something to happen when something happens.bind
function doesn't work anymore (there is a stub so this can still be a drop-in, but it'll do nothing).npm install angular-2-local-storage
You can optionally configure the module:
import { LocalStorageModule } from 'angular-2-local-storage';
@NgModule({
imports: [
LocalStorageModule.forRoot({
prefix: 'my-app',
storageType: 'localStorage'
})
],
declarations: [
..
],
providers: [
..
],
bootstrap: [AppComponent]
})
export class AppModule { }
Then you can use it in a component:
import { LocalStorageService } from 'angular-2-local-storage';
@Component({
// ...
})
export class SomeComponent {
constructor (
private _localStorageService: LocalStorageService
) {
// YAY!
}
}
import { ILocalStorageServiceConfig } from 'angular-2-local-storage';
for type information about the configuration object.
FAQs
LocalStorageService for Angular 2 with mostly the same API (and most of the code) from angular-local-storage
We found that angular-2-local-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.