Passing data from Controller to View ASP.NET Core Tutorial In this tutorial, we will build a very basic data entry form using the ASP.NET Core. A form is an HTML form that lets visitors to enter the information in the web page. We will build a simple form, which will accept the product details. […]
In this tutorial, we are going to learn how to pass data from Controller to View. We should create View Models with all of the needed data and pass it from the controller to the View. The View Models can be passed to the View by creating a dynamic property in ViewBag. It can be passed using the Model Property of the ViewData. The Model property allows us to create the strongly typed Views using the @model directive. We will look at all these in this tutorial.
This post is a guide to how to modify the HTTP Request by intercepting the HTTP Request. The option to intercept the outgoing or incoming request was added in the new HttpClientModule. The Interceptor can be useful for adding custom headers to the outgoing request, logging the incoming response etc.
This post is a guide how to Pass the URL Parameters or Query string along with the HTTP Request using the HttpClient in Angular. We will be using HttpParams to add the query parameter, which is then used by the httpClient.get method to send a get request to the GitHub API.
The Angular HttpClient Module is introduced in the Angular 4.3. This new API is available in package @angular/common/http and intends to replace the older HttpModule. In this Tutorial on HttpClient we learn how to use HttpClient.Get method to query the GitHub API Source to get data into our Application. Like the older HtppModule, the newer HttpClientModule also uses the RxJs Observables. The Response returned from the HttpClient needs to be Subscribed. We will learn all these in this Tutorial.