A simple "Hello World" built using Angular with a .NET Core REST API.
This is a simple isomorphic application that hosts an Angular web client and a .NET Core REST service. The client displays the web page and makes an HTTP request to the .NET REST service to retrieve a string from the /api/hello
endpoint. As simple as it is, this project demonstrates how to connect an Angular front-end with a .NET back-end.
While the REST API only returns a simple string, this could easily be expanded to utilize the Entity Framework to retrieve from a database or perform other interactions.
Returns the text "Hello, World". You may optionally provide a url parameter ?text=<YOUR TEXT>
to customize the text returned.
Returns the text specified in the url.
The layout of the program focuses on the home component which displays the text from the type Hello.
The component loads the text from an Angular service.
Finally, the resulting text is rendered on the page.
Angular client => Angular service => .NET controller
- Visual Studio Code
- Angular
- C# .NET Core (Web API)
- TypeScript
MIT