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
package streamexample; | |
public class Book { | |
private String author; | |
private String title; | |
public Book(String author, String title) { | |
this.author = author; | |
this.title = title; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<div style="margin: 50px; position: fixed;left: 45%;" [hidden]="isShowDiv"> | |
<div> | |
<mat-card><b>Movie Details : {{name}}</b></mat-card><br> | |
</div> | |
<div id="DetailsDIV"> | |
<p> <b>Actors:</b> {{movieDetails['Actors']}}</p> | |
<p> <b>Awards:</b> {{movieDetails['Awards']}}</p> | |
<p> <b>BoxOffice:</b> {{movieDetails['BoxOffice']}}</p> | |
<p> <b>Country:</b> {{movieDetails['Country']}}</p> | |
<p> <b>Director:</b> {{movieDetails['Director']}}</p> |
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
<div class="background"> | |
<router-outlet></router-outlet> | |
<mat-toolbar> | |
<div class="box" style="position: relative;left: 5%;"> | |
<h1>OMDB Search</h1> | |
</div> | |
<div class="box" style="position: relative;left: 50%;"> | |
<input class="box" style="position: relative;left: 70%;" type="text" #movieSearchInput class="form-control" placeholder="Search a movie" /> |
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
openDialog(row_obj:any): void { | |
let dialogRef = this.dialog.open(DialogBoxComponent, { | |
width: '250px', | |
data: { name: this.name } | |
}); | |
dialogRef.afterClosed().subscribe(result => { | |
this.name = result; | |
if(this.name!=undefined){ | |
if(this.name==""){ |
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
<ng-container matColumnDef="actions"> | |
<mat-header-cell *matHeaderCellDef>Actions </mat-header-cell> | |
<mat-cell *matCellDef="let user"> | |
<button mat-button color="primary" (click)="openDialog(this.user)">Edit</button> | | |
<button mat-button color="warn" (click)="delete(this.user)">Delete</button> | |
</mat-cell> | |
</ng-container> |
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
<mat-form-field apparence="legacy"> | |
<mat-label>Name</mat-label> | |
<input matInput [(ngModel)]="newUser.userName" type="text" name="newuserName" id="newuserName" class="form-control" required> | |
</mat-form-field><br> | |
<mat-form-field apparence="legacy"> | |
<mat-label>Email</mat-label> | |
<input matInput [(ngModel)]="newUser.email" type="text" name="email" id="email" class="form-control" pattern="[a-zA-Z0-9.-_]{1,}@[a-zA-Z.-]{2,}[.]{1}[a-zA-Z]{2,}" required> | |
</mat-form-field><br> |
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
<table mat-table #table [dataSource]="myDataArray" class="mat-elevation-z8"> | |
<ng-container matColumnDef="userName"> | |
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell> | |
<mat-cell *matCellDef="let user"><div> {{user.userName}} </div></mat-cell> | |
</ng-container> | |
<ng-container matColumnDef="email"> | |
<mat-header-cell *matHeaderCellDef>Email</mat-header-cell> | |
<mat-cell *matCellDef="let user"><div> {{user.email}} </div></mat-cell> |