- What does the acronym LIFT describe?
- Locate code quickly
- Identify easily (naming)
- flat folder structure
- Try to be DRY
- What 2 options for organizing an Angular project folder do exist?
- convention based
- feature based
Introduction Course Prerequesites 0. General Preparation
| import { Component } from '@angular/core'; | |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
| import { ShowContactsDirective } from './show-contacts.directive'; | |
| import { getElement } from '../../testing'; | |
| @Component({ | |
| template: ` | |
| <div *appShowContacts="true"> | |
| <p>This is shown</p> | |
| </div> |
| import { DebugElement } from '@angular/core'; | |
| import { | |
| ComponentFixture, | |
| fakeAsync, | |
| TestBed, | |
| tick | |
| } from '@angular/core/testing'; | |
| import { By } from '@angular/platform-browser'; | |
| import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | |
| import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing'; |
| import { Component } from '@angular/core'; | |
| import { | |
| ComponentFixture, | |
| TestBed, | |
| TestModuleMetadata | |
| } from '@angular/core/testing'; | |
| import { constants } from './favorite-icon.constants'; | |
| import { FavoriteIconDirective } from './favorite-icon.directive'; | |
| import { getStarElement, doClassesMatch } from '../../testing'; |
| describe('CalculatorService', () => { | |
| let calculator: CalculatorService, | |
| loggerSpy: any; | |
| beforeEach(()=> { | |
| console.log("Calling beforeEach"); | |
| loggerSpy = jasmine.createSpyObj('LoggerService', ["log"]); |
| describe('CoursesService', () => { | |
| let coursesService: CoursesService, | |
| httpTestingController: HttpTestingController; | |
| beforeEach(() => { | |
| TestBed.configureTestingModule({ | |
| imports: [ | |
| HttpClientTestingModule |
| describe("HomeComponent", () => { | |
| let fixture: ComponentFixture<HomeComponent>; | |
| let component: HomeComponent; | |
| let el: DebugElement; | |
| let coursesService: any; | |
| const beginnerCourses = setupCourses().filter( | |
| course => course.category == "BEGINNER" | |
| ); |