Skip to content

Commit

Permalink
Merge pull request #5 from johanah29/abakar
Browse files Browse the repository at this point in the history
Abakar
  • Loading branch information
johanah29 authored May 5, 2022
2 parents aed7b15 + 9b629c4 commit e3af696
Show file tree
Hide file tree
Showing 10 changed files with 373 additions and 72 deletions.
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
Expand Down
114 changes: 45 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<router-outlet></router-outlet>
<app-launch-programs></app-launch-programs>
8 changes: 6 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LaunchDetailComponent } from './components/launch-detail/alunch-detail.component';
import { LunchProgramsComponent } from './components/launch-programs/launch-programs.component';
import { ListCapsuleComponent } from './components/list-capsule/list-capsule.component';
import { CapsuleComponent } from './components/capsule/capsule.component';

@NgModule({
declarations: [
AppComponent,
LaunchDetailComponent,
LunchProgramsComponent,
ListCapsuleComponent,
CapsuleComponent
],
imports: [
AppRoutingModule,
BrowserModule,
HttpClientModule,
AppRoutingModule
AppRoutingModule,
HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down
26 changes: 26 additions & 0 deletions src/app/components/launch-detail/alunch-detail.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Component, Input, OnInit } from '@angular/core';

@Component({
selector: 'app-launch-detail',
templateUrl: './launch-detail.component.html',
styleUrls: ['./launch-detail.component.css']
})
export class LaunchDetailComponent implements OnInit {

showMe:boolean=false

toggleTag(){
this.showMe=!this.showMe
}

@Input() data: any;

constructor() { }

ngOnInit(): void {
}

ngOnChanges() {
console.log(this.data);
}
}
Loading

0 comments on commit e3af696

Please sign in to comment.