Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@angular/core
Advanced tools
The @angular/core package is a fundamental part of Angular, a popular front-end web application platform. It provides the critical runtime parts of the Angular framework, including the component decorator, directives, dependency injection, and the core Angular APIs necessary for building dynamic single-page web applications.
Components
Components are the building blocks of Angular applications. They control a patch of screen called a view. The @Component decorator indicates that the class immediately below it is a component and provides metadata about the component.
"@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'My Angular App'; }"
Dependency Injection
Dependency Injection (DI) is a design pattern used in Angular to make components or classes dependent on interfaces rather than concrete implementations. This improves modularity and testability.
"constructor(private myService: MyService) {}"
Directives
Directives are classes that add additional behavior to elements in your Angular applications. With Angular's built-in directives, you can manage forms, lists, styles, and what users see.
"@Directive({ selector: '[appHighlight]' }) export class HighlightDirective { constructor(el: ElementRef) { el.nativeElement.style.backgroundColor = 'yellow'; } }"
React is a popular JavaScript library for building user interfaces. It focuses on a component-based architecture similar to Angular but uses a different syntax and design philosophy. React emphasizes a one-way data flow and virtual DOM for efficient rendering.
Vue.js is a progressive JavaScript framework used for building UIs and single-page applications. It is designed from the ground up to be incrementally adoptable. Vue also focuses on the ViewModel part of the MVVM pattern and employs a reactive and composable data model.
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.0-next.9 (2024-10-10)
this.foo
property reads no longer refer to template context variables. If you intended to read the template variable, do not use this.
.factories
property in KeyValueDiffers
has been removed.name
option in the ng add @localize
schematic has been removed in favor of the project
option.BrowserModule.withServerTransition
method has been removed. Please use the APP_ID
DI token to set the application id instead.| Commit | Type | Description |
| -- | -- | -- |
| 09f589f000 | fix | this.a
should always refer to class property a
(#55183) |
| e8d1944999 | fix | add multiple :host and nested selectors support (#57796) |
| 82144b6d63 | fix | allow combinators inside pseudo selectors (#57796) |
| 292ea4714f | fix | fix comment typo (#57796) |
| 69529d8873 | fix | fix parsing of the :host-context with pseudo selectors (#57796) |
| 2374b87b64 | fix | preserve attributes attached to :host selector (#57796) |
| 46a6324c82 | fix | scope :host-context inside pseudo selectors, do not decrease specificity (#57796) |
| bc5f1175e9 | fix | transform pseudo selectors correctly for the encapsulated view (#57796) |
| Commit | Type | Description | | -- | -- | -- | | 8d8c03abc4 | fix | defer symbols only used in types (#58104) |
| Commit | Type | Description |
| -- | -- | -- |
| ee426c62f0 | fix | allow signal write error (#57973) |
| 67db4305c2 | fix | clean up afterRender after it is executed (#58119) |
| 656b5d3e78 | fix | Re-assign error codes to be within core bounds (<1000) (#53455) |
| 97fb86d331 | perf | set encapsulation to None
for empty component styles (#57130) |
| c15ec36bd1 | refactor | remove deprecated factories
Property in KeyValueDiffers
(#58064) |
| Commit | Type | Description | | -- | -- | -- | | bc83fc1e2e | feat | support converting to signal queries in VSCode extension (#58106) |
| Commit | Type | Description |
| -- | -- | -- |
| 9c3bd1b5d1 | refactor | remove deprecated name
option. (#58063) |
| Commit | Type | Description | | -- | -- | -- | | c1aa411cf1 | fix | properly resolve tsconfig paths on windows (#58137) |
| Commit | Type | Description |
| -- | -- | -- |
| 5c61f46409 | refactor | remove deprecated BrowserModule.withServerTransition
method (#58062) |
| Commit | Type | Description |
| -- | -- | -- |
| 9e82559de4 | fix | destroy PlatformRef
when error happens during the bootstrap()
phase (#58112) |
| Commit | Type | Description | | -- | -- | -- | | 1479af978c | feat | finish implementation of refreshAhead feature (#53356) |
<!-- CHANGELOG SPLIT MARKER --><a name="18.2.8"></a>
FAQs
Angular - the core framework
The npm package @angular/core receives a total of 2,085,380 weekly downloads. As such, @angular/core popularity was classified as popular.
We found that @angular/core 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.