Hi developer,

I am using angular 2 with asp.net 5 webApI. I have a created database in 
mssql server.

here is my syntax code:

export class StudentFormComponent {
...........
...........
     addSubmit() {

...........
...........
        var inputStudentName = (<HTMLInputElement>document.getElementById(
'Name')).value;
        var addStudentValue = { Name: inputStudentName };


        this.http.post('localhost:8080', JSON.stringify(addStudentValue), { 
headers: headers }).map(res => res.json()).subscribe(students => 
this.responseStu 
= students);

        *//**this.templates.push();** ?????? *

...........
...........
    }
}

How to refresh content after a http post request in Angular 2?

I am waiting for your response.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to