• About
  • Privacy Policy
  • Utilities
Darchuk.NET

HTML

Angular date picker with NgbDatePicker

June 14, 2019 by Robert Leave a Comment

DatePickers are pretty much a dime a dozen these days, but if you are already using a framework that already has a DatePicker, it makes sense to use that. via GIPHY ng-bootstrap ng-bootstrap is a package of Angular components that are built using Bootstrap 4.  So, if you’re already using Bootstrap and Angular, it could … [Read more…]

Posted in: Angular, CSS, HTML, JavaScript, Typescript Tagged: Angular, Bootstrap, HTML, JavaScript, Typescript

C# Parsing HTML with regular expressions

May 3, 2019 by Robert Leave a Comment

Regular expressions are notoriously difficult.  But its just like programming.  Any errors or bugs produced end up being the fault of the programmer.  Good intentions give way to some small overlooked issue. via GIPHY Parsing HTML There are a lot of cool utilities for parsing HTML in C#.  One of the most popular one is … [Read more…]

Posted in: C#, HTML Tagged: C#, HTML, Regular Expressions

Angular–Making a Modal Service by Extending NgbModal

January 11, 2019 by Robert 1 Comment

I like the idea of modal dialogs for certain things, especially showing error messages or confirming an action.  Creating (and styling) modal dialogs can vary so much that Angular doesn’t include them out of the box.  There’s a bunch of libraries out there that give you this functionality, including ones that are tied to a … [Read more…]

Posted in: Angular, Asynchronous, HTML, Typescript, Web Development Tagged: Angular, Blocking, Bootstrap, Dialog, Modal, NgBootstrap

Angular–Displaying objects as JSON

December 28, 2018 by Robert Leave a Comment

Sometimes, especially when you’re debugging or planning out your component layouts, it can be useful to just write out the entire object as JSON so you can see just what you’re dealing with.  You can do this in Chrome’s console usually with good results, but sometimes it would be easier to see it in the … [Read more…]

Posted in: Angular, Debugging, HTML, JavaScript, Typescript, Web Development Tagged: Angular, Debugging, Json, pipe

Styling ngb-pagination to be display: inline-block

October 12, 2018 by Robert Leave a Comment

Recently I wanted to have a ng-pagination control as well as a few “results per page” links to change the number of items displayed in a given page. However, ngb-pagination is always displayed as a block, so you have to fiddle around with it to get it to work.  First I tried to just put … [Read more…]

Posted in: Angular, CSS, HTML, Web Development Tagged: Angular, CSS, ngb-pagination, NgBootstrap

Angular 2+: Binding HTML Select ngModel to a number

April 20, 2018 by Robert Leave a Comment

I hate magic things.  In programming, I mean.  I try to avoid magic strings and magic numbers as much as possible because I can barely remember the thing I typed five seconds ago, let alone something that you have to maybe type five hours from now.  So, I tend to use a lot of enums … [Read more…]

Posted in: Angular, HTML, Typescript, Web Development Tagged: Angular, HTML, JavaScript, Option, Select, Typescript, Web Development

Removing non-printable characters in JavaScript

October 13, 2017 by Robert Leave a Comment

A quick look at the Unicode table or the ASCII character table proves that not all characters are meant for us humans to consume.  Some of them are control characters – things that tell the computer what to do.  Most of the time they go unnoticed, but sometimes they can cause problems, especially if you’re … [Read more…]

Posted in: HTML, JavaScript Tagged: ASCII, HTML, JavaScript, Unicode

Getting the text out of HTML select options

October 6, 2017 by Robert Leave a Comment

The HTML select tag is a dropdown.  The elements of a select are defined by the option tag.  The option tag also has the ability to contain values, which may be used to store useful information such as an index. However, what if you don’t need the index, but rather the text being displayed of … [Read more…]

Posted in: HTML, JavaScript Tagged: Dropdown, HTML, JavaScript, Option, Select

Recent Posts

  • Allowing trailing JSON commas in ASP.NET Core 3
  • YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha
  • Logging in a .NET Core 3 SignalR client
  • .NET Core 3 unit testing project sdk
  • .NET Core 3.0 Upgrade–New JSON Serializer Gotchas

Recent Comments

  1. Robert on C# Setting Socket Keep-Alive
  2. Oliver Schramm on C# Setting Socket Keep-Alive
  3. John Anderson on Waiting for a keypress asynchronously in a C# console app
  4. Ronald Garlit on .NET Core 3 unit testing project sdk
  5. Ronald Garlit on .NET Core 3 unit testing project sdk

Copyright © 2025 Darchuk.NET.

Omega WordPress Theme by ThemeHall