List of commits:
Subject Hash Author Date (UTC)
Add vehcile list component logic f96645d6de189b56c4f5d2dd01916e2b13ac4253 antcalatayud 2019-03-01 11:09:55
API get vehicles API. Fix bug *ngIf cba365b66c9bf87c6142f09ef2a673bfec91e837 antcalatayud 2019-03-01 10:24:59
Add delete vehicle functionality ec8398b6bb475a8326491ec59de955c55c1d8ee9 Antonio Calatayud 2019-02-18 16:41:02
Update vehicle c35c1d2f0ef4cc27bab1c261e4655a7a91eb1c7c Antonio Calatayud 2019-02-18 16:24:34
Populate checkboxes form. Fixed typo isRegistered 49b9fad3eb0ff05358e47eab61c6d06428f3d632 Antonio Calatayud 2019-02-18 15:50:04
Populate Model dropdown when form is vehicle form populated e71ebedf4a0bf1572dda7885eefd96d119693d69 Antonio Calatayud 2019-02-18 15:18:45
Prepare vehicle object to fill form db2a4dbb892ab8fdec34cf19cddcf6a5aa99d3aa antonio.calatayud 2019-01-29 16:46:02
Make parralle request to load vehicle b66d537ee97e2b0d1840e1440e04ea56b27e9557 antonio.calatayud 2019-01-28 16:50:35
Add get vehicle methon on vehicle service 27c078d382ae489c49855b77d0151ea506486a96 antonio.calatayud 2019-01-28 15:55:08
Add "logging" on prod mode - just example ead0ba75a9cf099e37676ab95f60a37aa3b883ca antonio.calatayud 2019-01-14 16:36:16
Add ngxToasta and global error handler cb0935ff5752b72870b6b9b5138e76fd0f7d7718 antonio.calatayud 2019-01-14 12:42:32
Remove font awesome 9ba33a938e20010daf4743f75301c994ec043a9d antonio.calatayud 2019-01-14 10:32:05
Updating solution to Angular 7 and bootsrap4. Missing font-awesome c277172b144f2d0c11fd9a246eaf4d00dedd6092 antonio.calatayud 2019-01-09 16:06:28
Implemented client side validation on new vehicle 10a9108113bdfbe2ae3b998a32633702e4bc13fc Antonio Calatayud 2019-01-08 16:24:50
Implement submit form 1e197fc2a202658d14526f2791b0a4a1dc4f568b Antonio Calatayud 2019-01-08 16:10:49
Biniding inputs to vehicle object d971e6fcc584e947b65547024fa9fd5407089b3e Antonio Calatayud 2019-01-08 16:04:25
Move Vehicle repository to UoW 440e32fd438f2143e1453e4504a383b3d09af016 Antonio Calatayud 2019-01-08 15:31:51
Move Models to Core and fix namespaces 7120645b3fb5c63653e56570280bf505d2dbf4ed Antonio Calatayud 2019-01-08 15:11:32
Start implementing UnitOfwork pattern d458f0ca3bced9b78880977ee11c3437633b7da0 Antonio Calatayud 2019-01-08 12:03:18
Move more context queries to repository 2cce05a668e039917d2c0967aa97eb3786dd5de2 Antonio Calatayud 2019-01-06 17:59:17
Commit f96645d6de189b56c4f5d2dd01916e2b13ac4253 - Add vehcile list component logic
Author: antcalatayud
Author date (UTC): 2019-03-01 11:09
Committer name: antcalatayud
Committer date (UTC): 2019-03-01 11:09
Parent(s): cba365b66c9bf87c6142f09ef2a673bfec91e837
Signing key:
Tree: 616a1f176ec88853491e7240038ca4202ebb9535
File Lines added Lines deleted
ClientApp/src/app/app.module.ts 5 2
ClientApp/src/app/services/vehicle.service.ts 5 1
ClientApp/src/app/vehicle-list/vehicle-list.component.css 0 0
ClientApp/src/app/vehicle-list/vehicle-list.component.html 3 0
ClientApp/src/app/vehicle-list/vehicle-list.component.spec.ts 6 6
ClientApp/src/app/vehicle-list/vehicle-list.component.ts 20 0
File ClientApp/src/app/app.module.ts changed (mode: 100644) (index c3cfbf9..fc7d73c)
... ... import { CounterComponent } from './counter/counter.component';
15 15 import { FetchDataComponent } from './fetch-data/fetch-data.component'; import { FetchDataComponent } from './fetch-data/fetch-data.component';
16 16 import { VehiculeFormComponent } from './vehicule-form/vehicule-form.component'; import { VehiculeFormComponent } from './vehicule-form/vehicule-form.component';
17 17 import { AppErrorHandler } from './app.error-handler'; import { AppErrorHandler } from './app.error-handler';
18 import { VehicleListComponent } from './vehicle-list/vehicle-list.component';
18 19
19 20 @NgModule({ @NgModule({
20 21 declarations: [ declarations: [
 
... ... import { AppErrorHandler } from './app.error-handler';
23 24 HomeComponent, HomeComponent,
24 25 CounterComponent, CounterComponent,
25 26 FetchDataComponent, FetchDataComponent,
26 VehiculeFormComponent
27 VehiculeFormComponent,
28 VehicleListComponent
27 29 ], ],
28 30 imports: [ imports: [
29 31 BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
 
... ... import { AppErrorHandler } from './app.error-handler';
32 34 FormsModule, FormsModule,
33 35 ToastaModule.forRoot(), ToastaModule.forRoot(),
34 36 RouterModule.forRoot([ RouterModule.forRoot([
35 { path: '', component: HomeComponent, pathMatch: 'full' },
37 { path: '', redirectTo: 'vehicles', pathMatch: 'full' },
36 38 { path: 'counter', component: CounterComponent }, { path: 'counter', component: CounterComponent },
37 39 { path: 'fetch-data', component: FetchDataComponent }, { path: 'fetch-data', component: FetchDataComponent },
38 40 { path: 'vehicles/new', component: VehiculeFormComponent }, { path: 'vehicles/new', component: VehiculeFormComponent },
39 41 { path: 'vehicles/:id', component: VehiculeFormComponent }, { path: 'vehicles/:id', component: VehiculeFormComponent },
42 { path: 'vehicles', component: VehicleListComponent },
40 43 ]) ])
41 44 ], ],
42 45 providers: [ providers: [
File ClientApp/src/app/services/vehicle.service.ts changed (mode: 100644) (index eeeb9eb..a563e6c)
... ... import { SaveVehicle } from '../models/vehicle';
5 5
6 6 @Injectable() @Injectable()
7 7 export class VehicleService { export class VehicleService {
8
9 8 constructor(private http: Http) { } constructor(private http: Http) { }
10 9
11 10 getMakes(){ getMakes(){
 
... ... export class VehicleService {
37 36 return this.http.delete('api/vehicles/' + id) return this.http.delete('api/vehicles/' + id)
38 37 .pipe(map((res: any) => res.json())); .pipe(map((res: any) => res.json()));
39 38 } }
39
40 getVehicles() {
41 return this.http.get('/api/vehicles')
42 .pipe(map((res: any) => res.json));
43 }
40 44 } }
File ClientApp/src/app/vehicle-list/vehicle-list.component.css copied from file ClientApp/src/app/vehicule-form/vehicule-form.component.css (similarity 100%)
File ClientApp/src/app/vehicle-list/vehicle-list.component.html added (mode: 100644) (index 0000000..ba50df2)
1 <p>
2 vehicle-list works!
3 </p>
File ClientApp/src/app/vehicle-list/vehicle-list.component.spec.ts copied from file ClientApp/src/app/vehicule-form/vehicule-form.component.spec.ts (similarity 53%) (mode: 100644) (index 8357f33..74a1ee7)
1 1 import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2 2
3 import { VehiculeFormComponent } from './vehicule-form.component';
3 import { VehicleListComponent } from './vehicle-list.component';
4 4
5 describe('VehiculeFormComponent', () => {
6 let component: VehiculeFormComponent;
7 let fixture: ComponentFixture<VehiculeFormComponent>;
5 describe('VehicleListComponent', () => {
6 let component: VehicleListComponent;
7 let fixture: ComponentFixture<VehicleListComponent>;
8 8
9 9 beforeEach(async(() => { beforeEach(async(() => {
10 10 TestBed.configureTestingModule({ TestBed.configureTestingModule({
11 declarations: [ VehiculeFormComponent ]
11 declarations: [ VehicleListComponent ]
12 12 }) })
13 13 .compileComponents(); .compileComponents();
14 14 })); }));
15 15
16 16 beforeEach(() => { beforeEach(() => {
17 fixture = TestBed.createComponent(VehiculeFormComponent);
17 fixture = TestBed.createComponent(VehicleListComponent);
18 18 component = fixture.componentInstance; component = fixture.componentInstance;
19 19 fixture.detectChanges(); fixture.detectChanges();
20 20 }); });
File ClientApp/src/app/vehicle-list/vehicle-list.component.ts added (mode: 100644) (index 0000000..6a83f06)
1 import { Component, OnInit } from '@angular/core';
2 import { VehicleService } from '../services/vehicle.service';
3 import { Vehicle } from '../models/vehicle';
4
5 @Component({
6 selector: 'app-vehicle-list',
7 templateUrl: './vehicle-list.component.html',
8 styleUrls: ['./vehicle-list.component.css']
9 })
10 export class VehicleListComponent implements OnInit {
11 vehicles: Vehicle[];
12
13 constructor(private vehicleService: VehicleService,) { }
14
15 ngOnInit() {
16 this.vehicleService.getVehicles()
17 .subscribe(vehicles => this.vehicles = vehicles);
18 }
19
20 }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/antcalatayud/vega

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/antcalatayud/vega

Clone this repository using git:
git clone git://git.rocketgit.com/user/antcalatayud/vega

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main