Quantcast
Channel: RSS Feed
Viewing all 391 articles
Browse latest View live

Custom Pipes in Ionic 2

$
0
0
Pipes are a convenient way to modify data before displaying it to users in templates. You can think of them as a pipe in a literal sense. You can push data through this pipe, something happens to it inside of the pipe, and when the data comes out the other end it looks different – […]

Introduction to Testing Ionic 2 Applications with TestBed

$
0
0
Creating automated tests for your application is a great way to improve the quality of your code, protect against code breaking regressions when implementing new features, and speed up testing and debugging. In a Javascript environment, the Jasmine framework is typically used for writing tests and Karma is used to run them. This is still […]

Getting Started with Google Maps in Ionic 2

$
0
0
Google Maps is one of the most used features in a mobile application, and my tutorials on Google Maps have consistently been the most popular on the site. My previous video on using Google Maps in Ionic 2 was created a long time ago, and is now outdated. So, I wanted to put together another […]

Creating a Music Player Interface in Ionic 2

$
0
0
In this tutorial, we will be building a custom music player interface in Ionic 2, with a focus on creating a visually pleasing design. The interface will include the following features: Track list with alternating row styles Track progress bar Information for currently playing track Styling and animation for currently playing track Next track and […]

An Explanation of Cordova Plugins for Ionic 2

$
0
0
One of the downsides of creating a web based mobile application is that you don’t have access to all of the device functionality that a native application does, and you can’t submit your application to app stores. Cordova solves this problem. Cordova is commonly used to wrap a web-based mobile application inside of a native […]

Dynamically Loading Markers with MongoDB in Ionic 2 – Part 1

$
0
0
In this tutorial series, we are going to cover how to dynamically load markers from a server and add them to a Google Map in Ionic 2. When dealing with a small number of markers it isn’t a big deal to just load them all and dump them into the map all at once, but […]

Test Driven Development in Ionic 2: An Introduction to TDD

$
0
0
The concept of creating automated tests for your application allows you to improve the quality of your code, protect against regressions when making updates, and speed up the testing and debugging process. There are many different types of tests you can add to your applications, including: Unit tests which test small isolated chunks of code […]

Dynamically Loading Markers with MongoDB in Ionic 2 – Part 2

$
0
0
In Part 1 of this tutorial series, we built a Node & Express server which uses MongoDB to store location data. We created a route that we could make a POST request to, and through supplying some data with that request it will return to us only locations that are within a certain proximity to […]

Using Semantic CSS Styling in Ionic 2

$
0
0
When creating styles with CSS it is common to attach .classes and #ids to DOM elements so that we can reference them in the CSS file. We can also just use element names directly to apply styles, and there are many more selectors we can use. In this video tutorial, I walk through a semantic […]

How, Why, and When to Use Providers in Ionic 2

$
0
0
Providers allow you to create a self-contained service that provides some kind of functionality to your application. The role of a provider might include things like fetching data from a server, performing operations on data, sharing data, providing a set of complicated mathematical operations, and so on. In general, we use providers to do the […]

An Overview of the Ionic 2 Build Process

$
0
0
I was browsing through the analytics for this website when I saw that someone had arrived on one of my articles by searching for: “why does Ionic have a node modules folder?”. The answer to that is simple enough, that’s where most of the dependencies for the application are stored (like the Ionic library itself, […]

Test Driven Development in Ionic 2: Http and Mocks

$
0
0
In the previous tutorial in this series, we introduced the concept of Test Driven Development and how those concepts can be applied to Ionic 2 development. I won’t be introducing the concepts again here, but in short: Test Driven Development, or TDD, is a method of development that involves writing tests before writing your application […]

Build a Tap to Reveal Component in Ionic 2

$
0
0
In this tutorial, we are going to walk through how to build a simple tap to reveal component in Ionic 2. The concept is quite straightforward, we will build a component that has two possible content area: a before, and an after. The before content will be displayed initially, and the after content will be […]

How to Install 3rd Party Libraries in Ionic 2

$
0
0
Ionic 2 allows you to do a wide range of things right out of the box, but there is likely going to come a time where you need to install some 3rd party library to add additional functionality into your applications. You may want to add Google Maps, add a charting library, add support for […]

Implementing Google Plus Sign-In with OAuth 2.0 in Ionic 2

$
0
0
I had originally planned to create a tutorial on how to integrate an Ionic 2 application with a user’s Google Calendar, but then I thought it would be wise to first cover authenticating with Google. I ran into a few issues when trying to get it up and running so I wanted to provide my […]

An Introduction to NgModule for Ionic 2

$
0
0
We all use it, it’s a critical part of our applications structure, but I think a lot of people are confused by what exactly it is and what it does. I’m talking about the @NgModule in the app.module.ts file in an Ionic 2 application. In short, using modules allows us to organise our application into […]

Test Driven Development in Ionic 2: Navigation and Spies

$
0
0
In the previous tutorial in this series, we covered the concept of mocks and creating a fake backend that we could make HTTP requests to. The general idea is that we want to isolate the thing we are testing, we don’t want external dependencies complicating our unit tests. We have been taking a Test Driven […]

Game Mechanics in Phaser: Simple Helicopter Obstacle Course

$
0
0
This will be the first part in a new series I plan on creating for creating HTML5 games with the Phaser framework. We will be focusing on how to create bare-bones versions of common game mechanics with Phaser. The same basic game mechanics can be used to create a multitude of different styles of games. […]

An Introduction to Structural Directives: *ngIf & *ngFor

$
0
0
In this video tutorial, we cover the concept of using structural directives like *ngIf, *ngFor, and *ngSwitchCase in Ionic 2. Structural directives are an Angular concept, but we will be discussing them in the context of an Ionic application. In short, a structural directive allows us to add or remove content to our applications based […]

Using Gestures & Uncommon Event Bindings in Ionic 2

$
0
0
In this video tutorial, we cover how to create event bindings other than the usual (click) event binding in Ionic 2. We will cover how to use gestures like press, swipe, pan, pinch, and rotate, as well as some more uncommon events like keydown and keydown.space. Here’s the video: Video Notes Event bindings like (click) […]
Viewing all 391 articles
Browse latest View live