Rick Strahl's Web Log

Wind, waves, code and everything in between...
ASP.NET • C# • HTML5 • JavaScript • AngularJs
Contact   •   Articles   •   Products   •   Support   •   Search
Ad-free experience sponsored by:
ASPOSE - the market leader of .NET and Java APIs for file formats – natively work with DOCX, XLSX, PPT, PDF, images and more

WebLog Posts in Category Angular

ASP.NET (236) .NET (120) JavaScript (71) jQuery (61) ASP.NET (60) Windows (50) AJAX (47) Visual Studio (44) CSharp (43) IIS (42) HTML (35) Localization (31) LINQ (30) Personal (30) WCF (28) MVC (25) HTML5 (23) WPF (22) FoxPro (21) ASP.NET Core (20) Web Services (19) Security (18) CSS (18) Web Api (16) COM (15) IIS7 (14) C# (13) ADO.NET (13) Angular (12) Vista (12) XML (10) HTTP (10) Sql Server (8) Microsoft AJAX (8) West Wind Ajax Toolkit (7) Web Connection (7) Entity Framework (6) Html Help Builder (5) Live Writer (5) C++ (5) ASPNET5 (5) Visual Studio (5) OWIN (5) SignalR (5) Silverlight (5) Source Control (4) Mobile (4) Westwind.Globalization (4) IIS (4) ISV (4) Cordova (4) IIS7 (3) DataBinding (3) Help Builder (3) Internet Explorer (3) LetsEncrypt (3) Networking (3) NuGet (3) Conferences (3) Windows (3) Internet Explorer (3) ADO.NET (3) Angular (3) WebLog (3) Web Browser Control (3) Opinion (3) Razor (3) Software Development (3) Speaking (2) RegEx (2) RSS (2) Tools (2) WinForms (2) .NET (2) WinForms (2) WPF (2) ASP.NET vNext (2) Bugs (2) .NET Core (2) Office (2) Installation (2) Help (2) Deployment (1) Dynamic Types (1) FireFox (1) Flexbox (1) Graphics (1) Hardware (1) Markdown Monster (1) Maui (1) IOS (1) iPhone (1) Linux (1) JSON (1) Addins (1) ASP.NET Markdown (1) Azure (1) Control Development (1) Chocolatey (1) Linux (1) Markdown Monster (1) Security (1) Typescript (1) .NET Core (1) ASP.NET Core (1) C# (1) FoxPro (1) HTML5 (1) Windsurfing (1) Travel (1) Visual Studio Code (1) Web Deployment Projects (1) Web Design (1) Musings (1) Testing (1) Threading (1) SEO (1) wwHoverPanel (1)

Error Handling and ExceptionFilter Dependency Injection for ASP.NET Core APIs

Exception handling in API applications is important as errors - both handled and unhandled - need to be passed to clients in some way to let them display error information. ASP.NET's default error handling doesn't provide for object error results by default, but you can use an ExceptionFilter to intercept exceptions and format them yourself. In this post I look at how to create an API exception filter to create error object responses, and hook up custom logging of those errors to disk.

Bootstrap Modal Dialog showing under Modal Background

On more than a few occasions I've run into issues with Bootstrap's Modal dialog rendering incorrectly with the dialog showing underneath the overlay. There are a number of ways around this problem, but none of them are universal that depend on how your pages are laid out. It's especially problematic for applications that dynamically render components where there's no good control on where the elements are placed outside of the components DOM containership. In this post, I describe a few of the workarounds and their limitations.

External JavaScript dependencies in Typescript and Angular 2

Angular 2.0 and Typescript make it very easy to import external Typescript classes and references using the module loading functionality built into Typescript (and ES6). However, if you need to work with external libraries that aren't built with Typescript you need to do a little extra work in importing and referencing the external libraries. In this post I show two approaches for importing libraries as modules and dereferencing library globals so that the Typescript compiler is happy.

The Rise of JavaScript Frameworks – Part 2: Tomorrow

JavaScript frameworks are undergoing a huge change for their V2 releases, going through the growing pains of providing a more modern platform and bridging new technologies. While the new frameworks promise improved performance and usability, there is also quite a bit of pain involved in respect to the build process and making the move to ES6.

The Rise of JavaScript Frameworks - Part 1: Today

JavaScript frameworks have moved front and center in the mainstream in the last year and a half or so. When building modern Web applications, the bar has been raised significantly by what is possible in large part due to the more accessible mainstream frameworks that are available today to build rich client and mobile Web applications. In this post I'll explore why JavaScript frameworks have become so popular so quickly and how it effects the future of Web development. This two part series addresses the current state in this post, and the new crop of V2 frameworks arriving later this year in the Part 2.

Right To Left (RTL) Text Display in Angular and ASP.NET

Recently I was gently asked to add support for RTL language editing in my Westwind.Globalization library and the Web Resource Editor. The Editor supports displaying resources in all of its localized version, but it didn't respect the RTL setting for languages that required it. In this post I describe how RTL support works in browsers, how you can detect RTL support on a locale in .NET and demonstrate how I integrated basic RTL edit and display support for the Resource Editor using a custom Angular directive.

Angular Select List Value not binding with Static Values

Ran into a problem converting from Angular 1.3 to 1.4rc a couple of days ago. The issue is that the way ng-model bindings work has changed, in that Angular 1.4 and later uses exact type matching for value comparisons which results in behavior changes. In my case I ran into a problem with static list values binding to a non-string value which caused the binding to effectively not work at all. Here's what the problem is and how to work around it.

Mixing $http Promises and $q Promises for cached Data

When creating services it's often useful to return data from the $http service, or cached data that already exists. You can't however just return the cached data, but have to turn it into a promise so it matches the $http callback signature. Here's how to deal with this frequent scenario.

AngularJs and Promises with the $http Service

The AngularJs $http object returns custom promises which can be surprising when you try to work with them. You can use either .then() or the easier .success() and .error() methods - at the cost of some inconsistency in Promise usage as these extension are specific to the $http functions. In this post I review a few different ways you can use promises and more importantly what the various $http methods return.

AngularJs ng-cloak Problems on large Pages

Angular supports the ng-cloak directive to address hiding initially unrendered template content. I found out the hard way that sometimes with very large pages this mechanism doesn't quite work and still results in slight page flicker of the unrendered template content. In this post I describe the problem and several easy solutions to get around it the edge case scenario.

Routing to a Controller with no View in Angular

Angular provides a nice routing, and controller to view model that makes it easy to create sophisticated JavaScript views fairly easily. But Angular's views are destroyed and re-rendered each time they are activated - what if you need to work with a persisted view that's too expensive to re-render? Here's how to build a headless controller that doesn't render a view through Angular, but rather manages the the view or markup manually.

JavaScript Arrays, References and Databinding in Angular

Ran into a snag with Angular Databinding where items added to an array $scope variable were not 'overwriting' other array elements. Turns out this isn't an Angular issue, but a JavaScript referencing issue, that can be easy to miss when using data binging.
West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2017