diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 5321380..2f1e549 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -10,6 +10,7 @@ import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { OutputComponent } from './output/output.component';
+import { FormsModule } from '@angular/forms';
@NgModule({
@@ -25,7 +26,8 @@ import { OutputComponent } from './output/output.component';
BrowserAnimationsModule,
MatInputModule,
MatFormFieldModule,
- MatSelectModule
+ MatSelectModule,
+ FormsModule
],
providers: [],
bootstrap: [AppComponent]
diff --git a/src/app/input/input.component.html b/src/app/input/input.component.html
index 3da3d0f..d3ca544 100644
--- a/src/app/input/input.component.html
+++ b/src/app/input/input.component.html
@@ -1,16 +1,16 @@
IPv4
-
+
Prefix
-
+
{{number}}
-
+
\ No newline at end of file
diff --git a/src/app/input/input.component.ts b/src/app/input/input.component.ts
index a361d43..4725fdf 100644
--- a/src/app/input/input.component.ts
+++ b/src/app/input/input.component.ts
@@ -7,13 +7,19 @@ import { Component, OnInit } from '@angular/core';
})
export class InputComponent implements OnInit {
counter: Array = [];
+ ipv4_eingabe: string = "";
+ prefix_selection: number = 0;
+
+
constructor() {
for (let i = 0; i <= 32; i++) {
this.counter.push(i);
}
}
-
+ onClick() {
+ alert(this.prefix_selection + " " + this.ipv4_eingabe)
+ }
ngOnInit(): void {
}
diff --git a/src/app/output/output.component.html b/src/app/output/output.component.html
index 158264b..5d1a20f 100644
--- a/src/app/output/output.component.html
+++ b/src/app/output/output.component.html
@@ -1,3 +1,5 @@
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/app/output/output.component.scss b/src/app/output/output.component.scss
index 9357e16..c9ecf42 100644
--- a/src/app/output/output.component.scss
+++ b/src/app/output/output.component.scss
@@ -1,9 +1,22 @@
.card {
- min-height: 20px;
+ min-height: 40px;
background-color: white;
- width: 600px;
+ width: 700px;
border: 1px solid rgba(0, 0, 0, 0.30);
border-radius: 10px;
overflow: hidden;
position: relative;
+ padding-left: 10px;
+ padding-top: 5px;
+ margin-bottom: 10px;
+ margin-left: 5px;
+}
+
+.label {
+ font-size: 18px;
+
+}
+
+.outlabel {
+ margin-right: 30px;
}
\ No newline at end of file