Skip to content

Commit ff4bf22

Browse files
committed
chore(*): adding navbar to app.component in bundle test
1 parent ae21cc3 commit ff4bf22

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

angular.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@
403403
"outputPath": "dist/bundle-test",
404404
"index": "projects/bundle-test/src/index.html",
405405
"browser": "projects/bundle-test/src/main.ts",
406+
"server": "projects/bundle-test/src/main.server.ts",
406407
"polyfills": [
407408
"zone.js"
408409
],
@@ -418,19 +419,25 @@
418419
"node_modules"
419420
]
420421
},
421-
"server": "projects/bundle-test/src/main.server.ts",
422422
"ssr": {
423423
"entry": "projects/bundle-test/server.ts"
424424
}
425425
},
426426
"configurations": {
427427
"production": {
428+
"statsJson": true,
428429
"budgets": [
429430
{
430431
"type": "initial",
431432
"maximumWarning": "500kb",
432433
"maximumError": "1mb"
433434
},
435+
{
436+
"type": "bundle",
437+
"name": "grid-component",
438+
"maximumWarning": "500kb",
439+
"maximumError": "1mb"
440+
},
434441
{
435442
"type": "anyComponentStyle",
436443
"maximumWarning": "2kb",

projects/bundle-test/src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!-- Toolbar -->
22
<div role="banner">
3+
<igx-navbar></igx-navbar>
34
<!-- <igx-chip [resourceStrings]="chipStrings">Chip</igx-chip> -->
45
<router-outlet></router-outlet>
56
</div>
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Component } from '@angular/core';
2-
import { ChipResourceStringsBG } from 'igniteui-angular-i18n';
32
import { RouterOutlet } from '@angular/router';
3+
import { IgxNavbarComponent } from 'igniteui-angular/navbar';
44

55
@Component({
66
selector: 'app-root',
77
templateUrl: './app.component.html',
88
styleUrls: ['./app.component.scss'],
9-
imports: [RouterOutlet]
9+
imports: [RouterOutlet, IgxNavbarComponent]
1010
})
1111
export class AppComponent {
12-
protected chipStrings = ChipResourceStringsBG;
1312
}

0 commit comments

Comments
 (0)