Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <label for="property_type">Property Type:</label>
  2. <input [(ngModel)]="newlisting.property_type" name="property_type"
  3. class="form-control" value={{oldlisting.property_type}}>
  4.  
  5. export class ListingEditComponent implements OnInit {
  6. constructor( private _demoService: DemoService
  7. ) {}
  8. ngOnInit(): void {
  9. this.getListing(this.mode);
  10.  
  11. }
  12.  
  13. getListing() {
  14. console.log("In listing_details - getListing");
  15. this._demoService.getListing(url).subscribe(
  16. data => { this.oldlisting = data},
  17. err => console.error(err),
  18. () => console.log('done loading details')
  19. );
  20. }
  21. editListing(){
  22. console.log("my new listing.name = "+this.newlisting.name);
  23.  
  24. }
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement