🎨 Generated services and components
This commit is contained in:
parent
0cfe9fe4a2
commit
6957c17907
@ -3,10 +3,18 @@ import { NgModule } from '@angular/core';
|
|||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { HomeComponent } from './components/home/home.component';
|
||||||
|
import { SongComponent } from './components/song/song.component';
|
||||||
|
import { ArtistsComponent } from './components/artists/artists.component';
|
||||||
|
import { AlbumsComponent } from './components/albums/albums.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent,
|
||||||
|
HomeComponent,
|
||||||
|
SongComponent,
|
||||||
|
ArtistsComponent,
|
||||||
|
AlbumsComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
1
src/app/components/albums/albums.component.html
Normal file
1
src/app/components/albums/albums.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>albums works!</p>
|
0
src/app/components/albums/albums.component.scss
Normal file
0
src/app/components/albums/albums.component.scss
Normal file
25
src/app/components/albums/albums.component.spec.ts
Normal file
25
src/app/components/albums/albums.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AlbumsComponent } from './albums.component';
|
||||||
|
|
||||||
|
describe('AlbumsComponent', () => {
|
||||||
|
let component: AlbumsComponent;
|
||||||
|
let fixture: ComponentFixture<AlbumsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ AlbumsComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(AlbumsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/components/albums/albums.component.ts
Normal file
15
src/app/components/albums/albums.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-albums',
|
||||||
|
templateUrl: './albums.component.html',
|
||||||
|
styleUrls: ['./albums.component.scss']
|
||||||
|
})
|
||||||
|
export class AlbumsComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
src/app/components/artists/artists.component.html
Normal file
1
src/app/components/artists/artists.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>artists works!</p>
|
0
src/app/components/artists/artists.component.scss
Normal file
0
src/app/components/artists/artists.component.scss
Normal file
25
src/app/components/artists/artists.component.spec.ts
Normal file
25
src/app/components/artists/artists.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ArtistsComponent } from './artists.component';
|
||||||
|
|
||||||
|
describe('ArtistsComponent', () => {
|
||||||
|
let component: ArtistsComponent;
|
||||||
|
let fixture: ComponentFixture<ArtistsComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ ArtistsComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(ArtistsComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/components/artists/artists.component.ts
Normal file
15
src/app/components/artists/artists.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-artists',
|
||||||
|
templateUrl: './artists.component.html',
|
||||||
|
styleUrls: ['./artists.component.scss']
|
||||||
|
})
|
||||||
|
export class ArtistsComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
src/app/components/home/home.component.html
Normal file
1
src/app/components/home/home.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>home works!</p>
|
0
src/app/components/home/home.component.scss
Normal file
0
src/app/components/home/home.component.scss
Normal file
25
src/app/components/home/home.component.spec.ts
Normal file
25
src/app/components/home/home.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HomeComponent } from './home.component';
|
||||||
|
|
||||||
|
describe('HomeComponent', () => {
|
||||||
|
let component: HomeComponent;
|
||||||
|
let fixture: ComponentFixture<HomeComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ HomeComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(HomeComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/components/home/home.component.ts
Normal file
15
src/app/components/home/home.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-home',
|
||||||
|
templateUrl: './home.component.html',
|
||||||
|
styleUrls: ['./home.component.scss']
|
||||||
|
})
|
||||||
|
export class HomeComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
src/app/components/song/song.component.html
Normal file
1
src/app/components/song/song.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>song works!</p>
|
0
src/app/components/song/song.component.scss
Normal file
0
src/app/components/song/song.component.scss
Normal file
25
src/app/components/song/song.component.spec.ts
Normal file
25
src/app/components/song/song.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { SongComponent } from './song.component';
|
||||||
|
|
||||||
|
describe('SongComponent', () => {
|
||||||
|
let component: SongComponent;
|
||||||
|
let fixture: ComponentFixture<SongComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ SongComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(SongComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/components/song/song.component.ts
Normal file
15
src/app/components/song/song.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-song',
|
||||||
|
templateUrl: './song.component.html',
|
||||||
|
styleUrls: ['./song.component.scss']
|
||||||
|
})
|
||||||
|
export class SongComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
12
src/app/services/audio.service.spec.ts
Normal file
12
src/app/services/audio.service.spec.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AudioService } from './audio.service';
|
||||||
|
|
||||||
|
describe('AudioService', () => {
|
||||||
|
beforeEach(() => TestBed.configureTestingModule({}));
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
const service: AudioService = TestBed.get(AudioService);
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
9
src/app/services/audio.service.ts
Normal file
9
src/app/services/audio.service.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class AudioService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
12
src/app/services/data.service.spec.ts
Normal file
12
src/app/services/data.service.spec.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { DataService } from './data.service';
|
||||||
|
|
||||||
|
describe('DataService', () => {
|
||||||
|
beforeEach(() => TestBed.configureTestingModule({}));
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
const service: DataService = TestBed.get(DataService);
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
9
src/app/services/data.service.ts
Normal file
9
src/app/services/data.service.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class DataService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
12
src/app/services/notification.service.spec.ts
Normal file
12
src/app/services/notification.service.spec.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { NotificationService } from './notification.service';
|
||||||
|
|
||||||
|
describe('NotificationService', () => {
|
||||||
|
beforeEach(() => TestBed.configureTestingModule({}));
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
const service: NotificationService = TestBed.get(NotificationService);
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
9
src/app/services/notification.service.ts
Normal file
9
src/app/services/notification.service.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class NotificationService {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user