@schematics/angular 17.0.4 → 17.1.0-next.0

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.
@@ -118,7 +118,7 @@ function getBootstrapComponentPath(host, mainPath) {
118
118
  // end helper functions.
119
119
  function validateProject(mainPath) {
120
120
  return (host) => {
121
- const routerOutletCheckRegex = /<router-outlet.*?>([\s\S]*?)<\/router-outlet>/;
121
+ const routerOutletCheckRegex = /<router-outlet.*?>([\s\S]*?)(?:<\/router-outlet>)?/;
122
122
  const componentPath = getBootstrapComponentPath(host, mainPath);
123
123
  const tmpl = getComponentTemplateInfo(host, componentPath);
124
124
  const template = getComponentTemplate(host, componentPath, tmpl);
@@ -333,4 +333,4 @@
333
333
  <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
334
334
 
335
335
  <% if (routing) { %>
336
- <router-outlet></router-outlet><% } %>
336
+ <router-outlet /><% } %>
@@ -6,7 +6,7 @@ import { Component } from '@angular/core';
6
6
  <h1>Welcome to {{title}}!</h1>
7
7
 
8
8
  <% if (routing) {
9
- %><router-outlet></router-outlet><%
9
+ %><router-outlet /><%
10
10
  } %>
11
11
  `,<% } else { %>
12
12
  templateUrl: './app.component.html',<% } if(inlineStyle) { %>
@@ -1,16 +1,15 @@
1
- import { Component } from '@angular/core';
2
- import { CommonModule } from '@angular/common';<% if(routing) { %>
1
+ import { Component } from '@angular/core';<% if(routing) { %>
3
2
  import { RouterOutlet } from '@angular/router';<% } %>
4
3
 
5
4
  @Component({
6
5
  selector: '<%= selector %>',
7
6
  standalone: true,
8
- imports: [CommonModule<% if(routing) { %>, RouterOutlet<% } %>],<% if(inlineTemplate) { %>
7
+ imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
9
8
  template: `
10
9
  <h1>Welcome to {{title}}!</h1>
11
10
 
12
11
  <% if (routing) {
13
- %><router-outlet></router-outlet><%
12
+ %><router-outlet /><%
14
13
  } %>
15
14
  `,<% } else { %>
16
15
  templateUrl: './app.component.html',<% } if(inlineStyle) { %>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "17.0.4",
3
+ "version": "17.1.0-next.0",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "schematics": "./collection.json",
25
25
  "dependencies": {
26
- "@angular-devkit/core": "17.0.4",
27
- "@angular-devkit/schematics": "17.0.4",
26
+ "@angular-devkit/core": "17.1.0-next.0",
27
+ "@angular-devkit/schematics": "17.1.0-next.0",
28
28
  "jsonc-parser": "3.2.0"
29
29
  },
30
30
  "repository": {