ionic framework

Ionic 2 Generic Copy Gulp Task

UPDATE: I've submitted a PR to the Ionic team for this. I think it can be useful to others. I'm finally getting up to speed on Ionic 2 by working my way through the excellent book "Building Mobile Apps with Ionic 2 from Josh Morony. I've been pleased to see…

Querying the DOM with Cached Views in Ionic Framework

Cached views are a blessing for navigating back and forth in an Ionic Framework apps. Caching helps with things like maintaining the scroll position in a back view. For example, if you're scrolled halfway down a list of customers and tap one of them to go to a detail view…

Preloading Images in AngularJS

I've been working on a prototyping tool using Ionic Framework that displays images. These images are app mockups that look exactly like the designer developed them. I associate "hotspots" to each image so that the user can tap a "button" and navigate to a new page or show additional "content…

Overriding a Directive in AngularJS

Recently, a bug was introduced into the Ionic Framework menu-close directive. It's an easy bug to overlook because the user has to do something unintuitive to encounter it. Here's a working example of the issue. The app loads on the Attendees List. If you tap a person, you'd go to…

Configuring App Names With Apostrophes in Cordova Hybrid Apps with Hooks

I recently ran into a roadblock when trying to change the name of an app. The app name needed to change from something like "Calendee" to "Calendee's App". Of course, this would seem like no big deal for a Cordova app. Simply open config.xml and change the name from…

Ionic Framework & Protractor Tests

I recently started working on an Ionic Framework app with some other developers. The team uses Protractor for unit tests. I'm ashamed to admit, this will be the first project I've ever written unit tests for! I was struggling to get rolling because my tests keep failing. The results would…