Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6cb175a
fix(igx-ts-legacy): update the base template
Hristo313 Mar 2, 2026
bf6c26f
fix(igx-ts-legacy): update error routing module
Hristo313 Mar 2, 2026
f5a61f3
fix(igx-ts-legacy): update igx-legacy templates and empty template
Hristo313 Mar 2, 2026
8db3079
fix(igx-ts-legacy): fixing tests
Hristo313 Mar 2, 2026
7e33ddd
fix(igx-ts-legacy): fixing tests
Hristo313 Mar 2, 2026
213068f
fix(igx-ts-legacy): fixing tests
Hristo313 Mar 2, 2026
2531da9
fix(igx-ts-legacy): fixing tests
Hristo313 Mar 2, 2026
16bc654
Merge branch 'master' into hhristov/update-igx-ts-legacy-templates
Hristo313 Mar 6, 2026
0e7223d
fix(igx-ts-legacy): update legacy templates
Hristo313 Mar 6, 2026
f8e4029
fix(igx-ts-legacy): update legacy templates
Hristo313 Mar 6, 2026
b59631f
fix(igx-ts-legacy): update legacy templates
Hristo313 Mar 6, 2026
e4493d1
fix(igx-ts-legacy): update legacy templates
Hristo313 Mar 6, 2026
ff2f81d
fix(igx-ts-legacy): update templates
Hristo313 Mar 9, 2026
6c70fb9
fix(igx-ts-legacy): update templates
Hristo313 Mar 9, 2026
784c322
fix(igx-ts-legacy): fix tests
Hristo313 Mar 9, 2026
86e5d15
fix(igx-ts-legacy): fix typo
Hristo313 Mar 9, 2026
48296e8
fix(igx-ts-legacy): update templates
Hristo313 Mar 9, 2026
e0eb8e1
fix(igx-ts-legacy): revert migrations changes
Hristo313 Mar 9, 2026
2583de2
fix(igx-ts-legacy): revert changes in the ig-ts template
Hristo313 Mar 9, 2026
06fc2bf
fix(igx-ts-legacy): revert changes in the ig-ts template
Hristo313 Mar 9, 2026
6d19bb1
fix(igx-ts-legacy): revert changes in the ig-ts template
Hristo313 Mar 9, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions packages/cli/lib/templates/AngularTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AngularTemplate implements Template {
}

public registerInProject(projectPath: string, name: string, options?: AddTemplateArgs) {
let modulePath = "app.module.ts";
let modulePath = "app-module.ts";
if (options && options.modulePath) {
modulePath = options.modulePath;
}
Expand Down Expand Up @@ -84,7 +84,7 @@ export class AngularTemplate implements Template {
mainModule.addNgModuleMeta({
declare: [className],
from: relativePath,
export: modulePath !== "app.module.ts" ? [className] : []
export: modulePath !== "app-module.ts" ? [className] : []
});
mainModule.finalize();

Expand Down
8 changes: 4 additions & 4 deletions packages/igx-templates/IgniteUIForAngularTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class IgniteUIForAngularTemplate implements Template {

//TODO: rename name to fullName for clarity + in all other places fileName to fullName
public registerInProject(projectPath: string, name: string, options?: AddTemplateArgs) {
let modulePath = "app.module.ts";
let modulePath = "app-module.ts";
if (options && options.modulePath) {
modulePath = options.modulePath;
}
Expand All @@ -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 Expand Up @@ -130,7 +130,7 @@ export class IgniteUIForAngularTemplate implements Template {
mainModule.addNgModuleMeta({
declare: this.addAsNgModelDeclaration ? [className] : [],
from: Util.relativePath(mainModulePath, componentFilePath, true, true),
export: modulePath !== "app.module.ts" ? [className] : []
export: modulePath !== "app-module.ts" ? [className] : []
},
Util.applyDelimiters(this.getBaseVariables(name), this.delimiters.content),
true // multiline
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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({
declarations: [<%=ClassName%>],
imports: [ NoopAnimationsModule, IgxAccordionModule, IgxSwitchModule ]
})
.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 @@ -2,10 +2,10 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
standalone: false
})
export class <%=ClassName%>Component {
export class <%=ClassName%> {
public singleBranchExpand = false;
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
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 } from '<%=igxPackage%>';
import { <%=ClassName%>Component, <%=ClassName%>PipeStartsWith } from './<%=filePrefix%>.component';
import { <%=ClassName%>, <%=ClassName%>PipeStartsWith } 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({
declarations: [<%=ClassName%>Component, <%=ClassName%>PipeStartsWith],
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [<%=ClassName%>, <%=ClassName%>PipeStartsWith],
imports: [FormsModule, IgxDropDownModule, IgxAutocompleteModule, NoopAnimationsModule, IgxInputGroupModule]
})
.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 @@ -3,11 +3,11 @@ import { Towns } from './towns-data';

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
standalone: false
})
export class <%=ClassName%>Component {
export class <%=ClassName%> {
public towns: string[];
public townSelected = '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class IgxAutocompleteTemplate extends IgniteUIForAngularTemplate {
from: "@angular/forms"
}, {
declare: ["<%=ClassName%>PipeStartsWith"],
from: "./src/app/<%=path%>/<%=filePrefix%>.component.ts"
from: "./src/app/<%=path%>/<%=filePrefix%>.ts"
}];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
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({
declarations: [<%=ClassName%>Component, <%=ClassName%>PipeStartsWith, <%=ClassName%>RegionContains],
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [<%=ClassName%>, <%=ClassName%>PipeStartsWith, <%=ClassName%>RegionContains],
imports: [FormsModule, IgxDropDownModule, IgxAutocompleteModule, NoopAnimationsModule, IgxInputGroupModule, IgxToastModule]
})
.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 @@ -4,11 +4,11 @@ import { Region, Town, townsExtended } from './towns-data-extended';

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
standalone: false
})
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
Expand Up @@ -18,10 +18,10 @@ class IgxAutocompleteTemplate extends IgniteUIForAngularTemplate {
from: "@angular/forms"
}, {
declare: ["<%=ClassName%>PipeStartsWith"],
from: "./src/app/<%=path%>/<%=filePrefix%>.component.ts"
from: "./src/app/<%=path%>/<%=filePrefix%>.ts"
}, {
declare: ["<%=ClassName%>RegionContains"],
from: "./src/app/<%=path%>/<%=filePrefix%>.component.ts"
from: "./src/app/<%=path%>/<%=filePrefix%>.ts"
}];
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
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({
declarations: [<%=ClassName%>Component],
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [<%=ClassName%>],
imports: [IgxBulletGraphModule, NoopAnimationsModule]
})
.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 @@ -4,12 +4,12 @@ import { IgxBulletGraphComponent, IgxLinearGraphRangeComponent } from 'igniteui-

@Component({
selector: 'app-<%=filePrefix%>',
templateUrl: './<%=filePrefix%>.component.html',
styleUrls: ['./<%=filePrefix%>.component.scss'],
templateUrl: './<%=filePrefix%>.html',
styleUrl: './<%=filePrefix%>.scss',
encapsulation: ViewEncapsulation.None,
standalone: false
})
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,27 @@
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({
declarations: [<%=ClassName%>],
imports: [IgxCalendarModule, NoopAnimationsModule]
})
.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 @@ -2,9 +2,9 @@ import { Component, ViewEncapsulation } from '@angular/core';

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

This file was deleted.

Loading
Loading