Creating a Custom Scroll Vanish Directive with Ionic Web Components
As I was scrolling through Twitter’s PWA (I assume this would be the same in their native application as well), I noticed that when you scroll down on a screen that has a “double toolbar” in the...
View ArticleCreating Custom Form Input Components with Ionic & Angular
A while ago I wrote a tutorial on building a custom input component for an Ionic application. It used an HTML5 <canvas> and a gesture listener to create a rating/satisfaction input component that...
View ArticleShadow DOM Usage in Ionic Web Components
Beginning with Ionic 4, all of Ionic’s components will be web components. Unlike previous iterations of the framework where the components were built using Angular, the move to web components means...
View ArticleAnatomy of an Ionic 4 Project
A long time ago I recorded a video that covered the “anatomy” of an Ionic project, and now I have recorded a video in the same style to cover the anatomy of an Ionic 4 and Angular project. An...
View ArticleStyling a Shadow DOM in Ionic 4
Since the release of Ionic 4, many of Ionic’s components now make use of a Shadow DOM. I’ve written about what exactly this means in another article, but the basic idea is that a Shadow DOM provides a...
View ArticleProduction/Development Environment Variables in Ionic & Angular
Often, our production environments are quite different to our development environments. Whilst your application is in development you might just want to make requests to a database running locally on...
View ArticleNavigation Basics & Passing Data Between Pages in Ionic & Angular
With the introduction of Ionic 4, we have seen a shift in responsibility for navigation from Ionic itself to whatever the underlying framework being used is. That means that if we are using Angular to...
View ArticleDealing with CORS (Cross-Origin Resource Sharing) in Ionic Applications
Almost everybody who is developing Ionic applications will at some point or another run into a fun little error that looks something like this: The Access-Control-Allow-Origin error you see here is the...
View ArticleCapacitor Workflow in an Ionic Application
Capacitor was built as an alternative to Cordova, and although much is similar in terms of its methodology, the workflow and commands you will use in a Capacitor application will look quite different...
View ArticleWhen to Use Services/Providers/Injectables in Ionic & Angular
Services, which we might also refer to as providers or injectables, are a commonly used pattern in Ionic/Angular development. Services allow us to: Make methods/data available to multiple...
View ArticleAn Introduction to NestJS for Ionic Developers
Creating a backend for your application has typically required a totally different skill set to what you might use for the front end. Over time, those lines have blurred as the likes of NodeJS and...
View ArticleTwitter Style Heart/Like Animation with Angular Animations in Ionic
In this tutorial, we are going to work on building an animated “like” button that will look like this when clicked: Since Ionic provides both a “full” and “empty” heart icon: It is easy enough to...
View ArticleLive Coding a Party Game with Ionic – Part 1
In this video, I walk through building a “party game” using Ionic live on screen. With these types of videos, the emphasis is on dealing with issues as they arise and trying to capture how I would...
View ArticleDynamic/Infinite Input Fields in an Ionic Application
Angular has fantastic support for forms, from the simple ngModel to the more robust reactive forms that make use of FormControl and FormGroup. Using ngModel allows us to bind input fields in the...
View ArticleUsing Providers and HTTP Requests in a NestJS Backend
In the previous tutorial, we covered setting up a simple NestJS server that communicated with an Ionic application. All we have done so far is create a simple controller in NestJS that responded with...
View ArticleLive Coding a Party Game with Ionic – Part 2
In the previous tutorial, we started building an application live on screen that would display a series of questions to the user. So far, we have been able to display some dummy data to cycle through...
View ArticleReordering List Items with Ionic Web Components
A while ago, I released a video that walked through how to reorder list items in Ionic 3. Now that Ionic 4 has been released, and just about everything has moved over to web components, the way in...
View ArticleBuilding a Notepad Application from Scratch with Ionic
A difficult part of the beginner’s journey to learning Ionic is the step between understanding some of the basics and actually building a fully working application for the first time. Concepts...
View ArticleSending Data with POST Requests to a NestJS Backend
In the previous tutorial, we focused on making a GET request from an Ionic application to a NestJS backend. A GET request is generally pretty simple, as all we are doing is making a generic request to...
View ArticleMulti-File Upload with Ionic & Angular (Client-Side)
I’ve been building out some software recently that involves uploading a bunch of files at once to a server, so I figured it would be worthwhile to share the solution I ended up with in this blog post....
View Article