@schematics/angular 21.0.4 → 21.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
3
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -3,8 +3,9 @@ import { Component, signal } from '@angular/core';
3
3
  @Component({
4
4
  selector: '<%= selector %>',<% if(inlineTemplate) { %>
5
5
  template: `
6
- <h1>Welcome to {{ title() }}!</h1>
7
-
6
+ <h1>Hello, {{ title() }}</h1>
7
+ <p>Congratulations! Your app is running. 🎉</p>
8
+
8
9
  <% if (routing) {
9
10
  %><router-outlet /><%
10
11
  } %>
@@ -1,4 +1,4 @@
1
- import { NgModule, provideBrowserGlobalErrorListeners } from '@angular/core';
1
+ import { NgModule, provideBrowserGlobalErrorListeners<% if(!zoneless) { %>, provideZoneChangeDetection<% } %> } from '@angular/core';
2
2
  import { BrowserModule } from '@angular/platform-browser';
3
3
  <% if (routing) { %>
4
4
  import { AppRoutingModule } from './app-routing<%= typeSeparator %>module';<% } %>
@@ -13,7 +13,8 @@ import { App } from './app<%= suffix %>';
13
13
  AppRoutingModule<% } %>
14
14
  ],
15
15
  providers: [
16
- provideBrowserGlobalErrorListeners()
16
+ provideBrowserGlobalErrorListeners(),<% if(!zoneless) { %>
17
+ provideZoneChangeDetection({ eventCoalescing: true }),<% } %>
17
18
  ],
18
19
  bootstrap: [App]
19
20
  })
@@ -3,7 +3,6 @@
3
3
  import { AppModule } from './app/app<%= typeSeparator %>module';
4
4
 
5
5
  platformBrowser().bootstrapModule(AppModule, {
6
- <% if(!zoneless) { %>ngZoneEventCoalescing: true,<% } %><% if(!!viewEncapsulation) { %>
7
- defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } %>
6
+ <% if(!!viewEncapsulation) { %> defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } %>
8
7
  })
9
8
  .catch(err => console.error(err));
@@ -5,7 +5,7 @@ import { RouterOutlet } from '@angular/router';<% } %>
5
5
  selector: '<%= selector %>',
6
6
  imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
7
7
  template: `
8
- <h1>Welcome to {{ title() }}!</h1>
8
+ <h1>Hello, {{ title() }}</h1>
9
9
 
10
10
  <% if (routing) {
11
11
  %><router-outlet /><%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "21.0.4",
3
+ "version": "21.0.6",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "21.0.4",
26
- "@angular-devkit/schematics": "21.0.4",
25
+ "@angular-devkit/core": "21.0.6",
26
+ "@angular-devkit/schematics": "21.0.6",
27
27
  "jsonc-parser": "3.3.1"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
31
  "url": "https://github.com/angular/angular-cli.git"
32
32
  },
33
- "packageManager": "pnpm@10.26.0",
33
+ "packageManager": "pnpm@10.27.0",
34
34
  "engines": {
35
35
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
36
36
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
@@ -16,8 +16,8 @@ exports.latestVersions = {
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
17
  Angular: '^21.0.0',
18
18
  NgPackagr: '^21.0.0',
19
- DevkitBuildAngular: '^21.0.4',
20
- AngularBuild: '^21.0.4',
21
- AngularSSR: '^21.0.4',
19
+ DevkitBuildAngular: '^21.0.6',
20
+ AngularBuild: '^21.0.6',
21
+ AngularSSR: '^21.0.6',
22
22
  };
23
23
  //# sourceMappingURL=latest-versions.js.map