This article shows how a website search could be implemented using Angular 2, ASP.NET Core and Elasticsearch. Most users expect autocomplete and a flexible search like some of known search websites. When the user enters a char in the search input field, an autocomplete using a shingle token filter with a terms aggregation used to […]

This article shows how autocomplete could be implemented in Angular 2 using ASP.NET Core MVC as a data service. The API uses Elasticsearch to query the data requests. ng2-completer is used to implement the Angular 2 autocomplete functionality. Code: 2017.01.07: Updated to csproj, webpack 2.2.0-rc.3, angular 2.4.1 To use autocomplete in the Angular 2 […]

This post shows how to use SASS with Webpack and Angular 2 in Visual Studio. I had various problems trying to get this to work from Visual Studio using a Webpack build. The following is a solution which works, but not the only one. Code: 2017.01.07: Updated webpack 2.2.0-rc.3, angular 2.4.1 Install node-sass globally, […]

This article shows how IdentityServer4 with Identity, a data Web API, and an Angular 2 SPA could be setup inside a single ASP.NET Core project. The application uses the OpenID Connect Implicit Flow with reference tokens to access the API. The Angular 2 application uses webpack to build. Code: 2017.01.07: Updated to IdentityServer4 1.0.0, […]

This article shows how the NLog connection string for the DatabaseTarget can be configured in the appsettings.json in an ASP.NET Core project and not the XML nlog.config file. All the NLog target properties can be configured in code if required and not just in the NLog XML configuration file. Code: 17.12.2016 Updated to ASP.NET […]

The article shows how to fully logout from IdentityServer4 using an OpenID Connect Implicit Flow. Per design when using an access token to use protected data from a resource server, even if the client has logged out from the server, the access token can be used so long it is valid (AccessTokenLifetime) as it is […]

This article shows how to use an ActionFilter to validate the model from a HTTP POST request in an ASP.NET Core MVC application. Code: 2016.12.23: Updated to Visual Studio 2017 and ASP.NET Core 1.1 Other articles in this series: Implementing UNDO, REDO in ASP.NET Core Angular 2 Auto Save, Undo and Redo ASP.NET Core […]