Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@angular/platform-browser-dynamic
Advanced tools
Angular - library for using Angular in a web browser with JIT compilation
The @angular/platform-browser-dynamic npm package provides methods for bootstrapping Angular applications in a browser environment with Just-In-Time (JIT) compilation. This package is typically used for development purposes, as it compiles the application dynamically in the browser, allowing for a faster development cycle. However, for production builds, Ahead-Of-Time (AOT) compilation is preferred for performance reasons, which is handled by the @angular/platform-browser package.
Bootstrapping Angular Modules
This code snippet demonstrates how to bootstrap an Angular module using the platformBrowserDynamic function. It imports the AppModule and then calls the bootstrapModule method to initialize the application.
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
This package provides tools for running Angular applications in a web browser with Ahead-Of-Time (AOT) compilation. Unlike @angular/platform-browser-dynamic, it is optimized for production by pre-compiling templates to make the application load faster and be more performant.
Similar to @angular/platform-browser-dynamic for Angular, react-dom is used for bootstrapping and rendering React applications in the browser. It provides the entry point to the DOM and server renderers for React and can be considered an equivalent in the React ecosystem.
The Vue.js framework has a similar package for bootstrapping and rendering Vue applications in the browser. It provides the functionality to create and mount the root Vue instance to the DOM, similar to how Angular applications are bootstrapped with @angular/platform-browser-dynamic.
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT
19.0.2 (2024-12-04)
| Commit | Type | Description | | -- | -- | -- | | 9f99196d23 | fix | account for multiple generated namespace imports in HMR (#58924) |
| Commit | Type | Description | | -- | -- | -- | | 4792db9a6d | fix | Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used. (#58929) |
| Commit | Type | Description | | -- | -- | -- | | 7b5bacc228 | fix | class content being deleted in some edge cases (#58959) | | d1cbdd6acb | fix | correctly strip away parameters surrounded by comments in inject migration (#58959) | | e17ff71c31 | fix | don't migrate classes with parameters that can't be injected (#58959) | | 7c5f990001 | fix | inject migration aggressively removing imports (#58959) | | 4392ccedf9 | fix | inject migration dropping code if everything except super is removed (#58959) | | 9cbebc6dda | fix | preserve type literals and tuples in inject migrations (#58959) |
| Commit | Type | Description | | -- | -- | -- | | f3c388ecda | fix | remove peer dependency on animations (#58997) |
<!-- CHANGELOG SPLIT MARKER --><a name="18.2.13"></a>
FAQs
Angular - library for using Angular in a web browser with JIT compilation
The npm package @angular/platform-browser-dynamic receives a total of 2,387,610 weekly downloads. As such, @angular/platform-browser-dynamic popularity was classified as popular.
We found that @angular/platform-browser-dynamic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.