Skip to content

Commit 18905d3

Browse files
committed
refactor: 💡 (rename) adjust starter components
1 parent 9f582b4 commit 18905d3

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

projects/ng-if-responsive-showcase/src/app/app.component.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ <h2 class="text-lg text-white pl-2">Showcase</h2>
1010
"Start building an epic Angular library and showcase it here"
1111
</blockquote>
1212

13-
<angular-library-starter-sample
14-
class="text-xl"
15-
></angular-library-starter-sample>
13+
<ng-if-responsive-sample class="text-xl"></ng-if-responsive-sample>
1614
</div>

projects/ng-if-responsive-showcase/src/app/app.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { HIGHLIGHT_OPTIONS, HighlightModule } from 'ngx-highlightjs';
44

5-
import { SampleComponent } from '../../../ng-if-responsive/src/lib/sample.component';
5+
import { NgIfResponsiveSampleComponent } from '../../../ng-if-responsive/src/lib/sample.component';
66

77
import { AppComponent } from './app.component';
88

99
@NgModule({
1010
declarations: [AppComponent],
11-
imports: [BrowserModule, HighlightModule, SampleComponent],
11+
imports: [BrowserModule, HighlightModule, NgIfResponsiveSampleComponent],
1212
providers: [
1313
{
1414
provide: HIGHLIGHT_OPTIONS,
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
22

3-
import { SampleService } from './sample.service';
3+
import { NgIfResponsiveSampleService } from './sample.service';
44

55
@Component({
6-
selector: 'angular-library-starter-sample',
6+
selector: 'ng-if-responsive-sample',
77
template: `<h1>
88
The best framework is {{ sampleService.getBestFramework() }}
99
</h1>`,
1010
standalone: true,
1111
changeDetection: ChangeDetectionStrategy.OnPush,
1212
})
13-
export class SampleComponent {
14-
constructor(public sampleService: SampleService) {}
13+
export class NgIfResponsiveSampleComponent {
14+
constructor(public sampleService: NgIfResponsiveSampleService) {}
1515
}

projects/ng-if-responsive/src/lib/sample.service.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { SampleService } from './sample.service';
1+
import { NgIfResponsiveSampleService } from './sample.service';
22

33
describe('Sample Service', () => {
4-
let sut: SampleService;
4+
let sut: NgIfResponsiveSampleService;
55

66
beforeEach(() => {
7-
sut = new SampleService();
7+
sut = new NgIfResponsiveSampleService();
88
});
99

1010
it('should know that Angular is the best framework', () => {

projects/ng-if-responsive/src/lib/sample.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
33
@Injectable({
44
providedIn: 'root',
55
})
6-
export class SampleService {
6+
export class NgIfResponsiveSampleService {
77
public getBestFramework(): string {
88
return 'Angular';
99
}

0 commit comments

Comments
 (0)