setting up find character function

master
Matt Huntington 9 years ago
parent 98f0304d52
commit b93b740efc

@ -1,5 +1,5 @@
<section>
<h2>Search For A Star Wars Character</h2>
<input [(ngModel)]="name" type="text" placeholder="Character Name"/>
<input type="submit" value="Search"/>
<input (click)="findCharacter(name)" type="submit" value="Search"/>
</section>

@ -9,6 +9,10 @@ export class SearchComponent implements OnInit {
constructor() { }
findCharacter(name){
console.log('finding ' + name);
}
ngOnInit() {
}

Loading…
Cancel
Save