Category: Angular

  • Angular JSON to CSV pipe

    Angular JSON to CSV pipe

    👋 Hey there! Are you working on an Angular app that needs to convert JSON data to CSV format? Look no further than the jsontocsv pipe! Here is the code: 🧐 Let’s take a closer look at how this pipe works. First, it defines a private function called flatten that takes an object and returns…

  • Handy angular CSV to JSON pipe

    Handy angular CSV to JSON pipe

    Today, we’re going to talk about a code snippet that can turn CSV data into JSON format using Angular. 🤖💻 First things first, let’s take a look at the code: This is a TypeScript class that defines an Angular pipe called CsvtojsonPipe. A pipe is a way to transform data in Angular. The transform method…

  • Fix for Angular template Autocomplete.

    Fix for Angular template Autocomplete.

    👋 Hey there, Angular developers! Do you use Visual Studio Code as your code editor and find yourself missing out on Angular template intellisense? 😩 Fear not, there’s a simple fix that can help you get the most out of your development experience! One of the reasons why you might not be getting Angular template…

  • How to add bearer token authentication to NSwag api.

    NSwag is a game changer for working with Angular and Net Core, you write your endpoint code, and swashbuckler generates your swagger docs. You can find more info on swashbuckler here: https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-6.0&tabs=visual-studio Where NSwag helps, is that it looks at the swagger document and generates all the typescript code, which includes the models, the functions…

  • We Hire It 🏰

    For a long time I have noticed that the hiring is becoming more and more popular. Car hire, holiday house hire, etc. I have run a small hire business in the past hiring jumping castles, ride on mowers, scaffolds, and things I felt people might find useful. I knew there was a lot to manage…

  • Debugging Angular with VS Code and Firefox

    Everyone has their own preference when it comes to debugging. Here is what has worked well for me! This example is based on a new angular application. If you would like to know how to get started with angular – head over here: https://code.visualstudio.com/docs/nodejs/angular-tutorial If you would like to clone the repo and give it…