Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label for="property_type">Property Type:</label>
- <input [(ngModel)]="newlisting.property_type" name="property_type"
- class="form-control" value={{oldlisting.property_type}}>
- export class ListingEditComponent implements OnInit {
- constructor( private _demoService: DemoService
- ) {}
- ngOnInit(): void {
- this.getListing(this.mode);
- }
- getListing() {
- console.log("In listing_details - getListing");
- this._demoService.getListing(url).subscribe(
- data => { this.oldlisting = data},
- err => console.error(err),
- () => console.log('done loading details')
- );
- }
- editListing(){
- console.log("my new listing.name = "+this.newlisting.name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement