This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ORIGINAL BY github.com/vratiu | |
# https://gist.github.com/vratiu/9780109 | |
# Reset | |
Color_Off="\033[0m" # Text Reset | |
# Regular Colors | |
Black="\033[0;30m" # Black | |
Red="\033[0;31m" # Red |
- crear un fichero
index.ts
para poder iniciar typescript - iniciar typescript
tsc -init
. Crea el ficherotsconfig.json
- Typescript modo observador tsc -w. Creación automática del compilador jS con tsc index.ts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CartComponent } from './cart.component'; | |
import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { HttpClientTestingModule } from '@angular/common/http/testing' | |
import { BookService } from '../../services/book.service'; | |
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; | |
describe('cart.component', () => { | |
let component: CartComponent;//declaramos el componente de tipo que queremos testear y lo importamos | |
let fixture: ComponentFixture<CartComponent>;//declaramos una variable para poder extraer el servicio que requiere el tipo que va a tener. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ca"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Recerca de feina</title> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> | |
<!--FONT-FAMILY REDRESSED & SOURCE SANS PRO CSS i web--> | |
<link href="https://fonts.googleapis.com/css2?family=Redressed&family=Source+Sans+Pro:wght@300;400;600&display=swap" rel="stylesheet"> |