Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
ngx-window-token
Advanced tools
Readme
This project was generated with Angular CLI version 9.
It is the same way how angular handle document. With this module, you can use WINDOW token just like DOCUMENT token.
BREAKING CHANGE: Support Angular >= 15 only
BREAKING CHANGE: Support Angular >= 13 only
return undefine if window is undefine. Before, it doesn't even inject WindowToken.
removed now-unnecessary NgxWindowTokenModule
, it will be inject into root module
change WindowTokenModule
-> NgxWindowTokenModule
You can get it on npm.
npm install ngx-window-token --save
1. npm i
2. npm run build
If you use SystemJS to load your files, you might have to update your config:
System.config({
map: {
'ngx-window-token': 'node_modules/ngx-window-token'
}
});
In your component
constructor(@Inject(WINDOW) _window) { }
For webpack / Angular CLI, it works as any other libraries. Please check demo folder for more help.
or clone this repo and run ng serve
FAQs
angular window inject token
The npm package ngx-window-token receives a total of 109,803 weekly downloads. As such, ngx-window-token popularity was classified as popular.
We found that ngx-window-token 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.