Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2fe6ce2
fix(igx-ts): update the template
Hristo313 Feb 27, 2026
7bb05d8
fix: typo
Hristo313 Feb 27, 2026
c123571
fix(igx-ts): update the templates
Hristo313 Feb 28, 2026
9722a1c
fix(igx-ts): update the templates
Hristo313 Feb 28, 2026
00fc8ec
fix(igx-ts): clean package json files
Hristo313 Feb 28, 2026
329bb6c
fix(igx-ts): update app component names
Hristo313 Feb 28, 2026
04007ad
fix(igx-ts): update templates
Hristo313 Feb 28, 2026
511d95d
Merge branch 'temp-master-changes' into hhristov/update-angular-templ…
Hristo313 Feb 28, 2026
5f3f6ef
fix(igx-ts): update templates
Hristo313 Feb 28, 2026
c4bda63
fix(igx-ts): update templates
Hristo313 Feb 28, 2026
507b493
fix(igx-ts): revert global error service logic
Hristo313 Mar 2, 2026
c7e1c79
fix(igx-ts): update angular to 21.2.0
Hristo313 Mar 2, 2026
a4fd562
fix(igx-ts): update error components
Hristo313 Mar 2, 2026
dcd7139
fix(igx-ts): update error components
Hristo313 Mar 2, 2026
9b72281
fix(igx-ts): add fixes
Hristo313 Mar 2, 2026
0cd722e
fix(igx-ts): add missing await
Hristo313 Mar 2, 2026
9252ef3
fix(igx-ts): rename app module
Hristo313 Mar 2, 2026
20f744b
fix(igx-ts): update igx-ts templates
Hristo313 Mar 6, 2026
a229a93
Merge branch 'master' into hhristov/update-angular-templates
Hristo313 Mar 6, 2026
8d9bf7d
fix(igx-ts): update igx-ts templates
Hristo313 Mar 6, 2026
869f34f
fix(igx-ts): fix test
Hristo313 Mar 6, 2026
174f499
fix(igx-ts): update igx-ts templates
Hristo313 Mar 6, 2026
9f1bda2
fix(igx-ts): fix tests
Hristo313 Mar 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~21.1.5",
"@angular/common": "~21.1.5",
"@angular/compiler": "~21.1.5",
"@angular/core": "~21.1.5",
"@angular/forms": "~21.1.5",
"@angular/platform-browser": "~21.1.5",
"@angular/platform-browser-dynamic": "~21.1.5",
"@angular/router": "~21.1.5",
"@angular/animations": "~21.2.0",
"@angular/common": "~21.2.0",
"@angular/compiler": "~21.2.0",
"@angular/core": "~21.2.0",
"@angular/forms": "~21.2.0",
"@angular/platform-browser": "~21.2.0",
"@angular/platform-browser-dynamic": "~21.2.0",
"@angular/router": "~21.2.0",
"jquery": "^3.7.1",
"jquery-ui": "^1.13.3",
"igniteui-angular-wrappers": "~21.0.1",
Expand All @@ -27,10 +27,10 @@
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular/build": "~21.1.5",
"@angular-devkit/build-angular": "~21.1.5",
"@angular/cli": "~21.1.5",
"@angular/compiler-cli": "~21.1.5",
"@angular/build": "~21.2.0",
"@angular-devkit/build-angular": "~21.2.0",
"@angular/cli": "~21.2.0",
"@angular/compiler-cli": "~21.2.0",
"@types/jasmine": "~5.1.4",
"@types/node": "^18.16.0",
"igniteui-cli": "^$(cliVersion)",
Expand Down
4 changes: 2 additions & 2 deletions packages/igx-templates/IgniteUIForAngularTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class IgniteUIForAngularTemplate implements Template {
const mainModulePath = path.join(projectPath, `src/app/${modulePath}`);
const folderName = this.folderName(name);
const fileName = this.fileName(name);
const componentFilePath = path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`);
const className = `${Util.className(Util.nameFromPath(name))}Component`;
const componentFilePath = path.join(projectPath, `src/app/${folderName}/${fileName}.ts`);
const className = `${Util.className(Util.nameFromPath(name))}`;
// standalone components
if (!this.fileExists(mainModulePath)) {
const appRoutesPath = "src/app/app.routes.ts";
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { <%=ClassName%> } from './<%=filePrefix%>';
import { IgxAccordionModule, IgxSwitchModule } from '<%=igxPackage%>';

describe('<%=ClassName%>', () => {
let component: <%=ClassName%>;
let fixture: ComponentFixture<<%=ClassName%>>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [NoopAnimationsModule, IgxAccordionModule, IgxSwitchModule, <%=ClassName%>]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(<%=ClassName%>);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import {

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: true,
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
imports: [
IgxSwitchComponent,
ReactiveFormsModule,
Expand All @@ -25,6 +24,6 @@ import {
IgxExpansionPanelBodyComponent,
],
})
export class <%=ClassName%>Component {
export class <%=ClassName%> {
public singleBranchExpand = false;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule } from '<%=igxPackage%>';
import { <%=ClassName%>, <%=ClassName%>PipeStartsWith } from './<%=filePrefix%>';

describe('<%=ClassName%>', () => {
let component: <%=ClassName%>;
let fixture: ComponentFixture<<%=ClassName%>>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [FormsModule, IgxDropDownModule, IgxAutocompleteModule, NoopAnimationsModule,
IgxInputGroupModule, <%=ClassName%>, <%=ClassName%>PipeStartsWith]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(<%=ClassName%>);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import {

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: true,
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
imports: [
ReactiveFormsModule,
FormsModule,
Expand All @@ -29,7 +28,7 @@ import {
forwardRef(() => <%=ClassName%>PipeStartsWith),
],
})
export class <%=ClassName%>Component {
export class <%=ClassName%> {
public towns: string[];
public townSelected = '';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { IgxAutocompleteModule, IgxDropDownModule, IgxInputGroupModule, IgxToastModule } from '<%=igxPackage%>';
import {
<%=ClassName%>Component,
<%=ClassName%>,
<%=ClassName%>PipeStartsWith,
<%=ClassName%>RegionContains
} from './<%=filePrefix%>.component';
} from './<%=filePrefix%>';

describe('<%=ClassName%>Component', () => {
let component: <%=ClassName%>Component;
let fixture: ComponentFixture<<%=ClassName%>Component>;
describe('<%=ClassName%>', () => {
let component: <%=ClassName%>;
let fixture: ComponentFixture<<%=ClassName%>>;

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
<%=ClassName%>Component,
<%=ClassName%>,
<%=ClassName%>PipeStartsWith,
<%=ClassName%>RegionContains,
FormsModule,
Expand All @@ -27,10 +27,10 @@ describe('<%=ClassName%>Component', () => {
]
})
.compileComponents();
}));
});

beforeEach(() => {
fixture = TestBed.createComponent(<%=ClassName%>Component);
fixture = TestBed.createComponent(<%=ClassName%>);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
standalone: true,
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
imports: [
IgxInputGroupComponent,
IgxLabelDirective,
Expand All @@ -38,7 +37,7 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
forwardRef(() => <%=ClassName%>RegionContains)
]
})
export class <%=ClassName%>Component {
export class <%=ClassName%> {
public regions!: Region[];
public townSelected!: string;
public postalCode?: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { IgxBulletGraphModule } from 'igniteui-angular-gauges';
import { <%=ClassName%>Component } from './<%=filePrefix%>.component';
import { <%=ClassName%> } from './<%=filePrefix%>';

describe('<%=ClassName%>Component', () => {
let component: <%=ClassName%>Component;
let fixture: ComponentFixture<<%=ClassName%>Component>;
describe('<%=ClassName%>', () => {
let component: <%=ClassName%>;
let fixture: ComponentFixture<<%=ClassName%>>;

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [IgxBulletGraphModule, NoopAnimationsModule, <%=ClassName%>Component]
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [IgxBulletGraphModule, NoopAnimationsModule, <%=ClassName%>]
})
.compileComponents();
}));
});

beforeEach(() => {
fixture = TestBed.createComponent(<%=ClassName%>Component);
fixture = TestBed.createComponent(<%=ClassName%>);
component = fixture.componentInstance;
fixture.detectChanges();
// disable animation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ import {

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [IgxLayoutDirective, IgxButtonDirective, IgxBulletGraphCoreModule]
})
export class <%=ClassName%>Component implements AfterViewInit {
export class <%=ClassName%> implements AfterViewInit {
@ViewChild('bulletGraph', { static: true })
public bulletGraph!: IgxBulletGraphComponent;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { IgxCalendarModule } from '<%=igxPackage%>';
import { <%=ClassName%> } from './<%=filePrefix%>';

describe('<%=ClassName%>', () => {
let component: <%=ClassName%>;
let fixture: ComponentFixture<<%=ClassName%>>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [IgxCalendarModule, NoopAnimationsModule, <%=ClassName%>]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(<%=ClassName%>);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { IgxLayoutDirective, IgxCalendarComponent } from '<%=igxPackage%>';

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [IgxLayoutDirective, IgxCalendarComponent]
})
export class <%=ClassName%>Component { }
export class <%=ClassName%> { }
Loading
Loading