I have a website built with Angular 5
that utilizes routing
.
Within my code branch, there is a folder containing sections with various data.
My goal is to display the required sections on a main page. I have achieved this, but encountered an issue where the info section displays on individual lines because two component.html
files are nested within one another.
I have attempted:
- Wrapping them in a
DIV
on the main page - Using Float: left/right on the components and
mat-card
- Setting widths
Personal details component html
<mat-card>
<mat-card-title class="firstCard">Personal details</mat-card-title>
<mat-card-content>
<mat-form-field>
<input matInput id="invName" placeholder="Full name" #name value="Mr Test Test" readonly>
</mat-form-field>
<mat-form-field>
<input matInput id="invRef" placeholder="Investor reference" #ref value="A11111" readonly>
</mat-form-field>
<!-- More input fields -->
</mat-card-content>
</mat-card>
Contact details component html
<mat-card>
<mat-card-title class="secondCard">Contact details</mat-card-title>
<mat-card-content>
<mat-form-field>
<input matInput id="invAddress" placeholder="Address" #address value="'this is a description of the some text' + \n + 'and further description'" readonly>
</mat-form-field>
<!-- More input fields -->
</mat-card-content>
</mat-card>
** Main page component html **
<div>
<app-personaldetails></app-personaldetails>
<app-contactdetails></app-contactdetails>
</div>