Mike's Blog

I’ve been getting more into decorators lately, especially since I used them in Angular/Ionic, but also in Python. But I realized that I really didn’t know much about them or how they actually worked. So I spent some time last night and built a small decorator, @platformReady(). WTH is a decorators Decorators can get confusing real fast, so we’re going to try to stay pretty high level here. In its simplest form, a decorator allows developers to perform higher-level functions on an annotated class or method.…

Typings hits 1.0! Typings finally hit its 1.0 recently (well more like a month or so ago), and with this it brought some drastic change to the API. So my previous post is now out of date. This is a perfect chance to go over these changes and how it may affect your project. What’s new? So a simple overview what’s changed from 0.X to 1.X has been provided in the README.md Updating From 0.x to 1.0?…

Now that Ionic 2 is out in beta, people are setting aside some time to give it a shot and investigate everything it has to offer. Ionic 2 and Angular 2 bring a lot of improvements, but it’s a fairly different style of developing that what people were used to before. Now, since everything needs to be imported and libraries aren’t global, it can be tricky to figure out how to integrate with other libraries.…

A Question came up in the Ionic Worldwide Slack today about how to set focus to an input. Now normally you’d think you would be able to call .focus() and call it day. But Ionic wraps native text inputs with custom Angular 2 components to better control the user experience.

Today I was watching a random video on ES6 tooling when I saw the author use a CSS property I’d never heard of. object-fit, and it was pretty awesome. Method of specifying how an object (image or video) should fit inside its box. object-fit options include “contain” (fit according to aspect ratio), “fill” (stretches object to fill) and “cover” (overflows box but maintains ratio), where object-position allows the object to be repositioned like background-image does.…

A good question came up in the Ionic Slack today. A dev was looking to change the name of an app that was already uploaded to the Ionic platform portal. When you start an ionic project from the CLI, along with all the html/css/js that you need, it creats an ionic.project file. In here, you get your apps name and app_id set, which gets used by the CLI { "name": "tmp", "app_id": "9cf2c890" } Now when I login to the Platform portal and upload my app, I’ll see it appear on my dash.…

This isn’t as much as a year in review for 2015, but all the things I look forward to doing in 2016. 2015 So 2015 was a big year for me. I gave so many talks and got to meet a whole bunch of other speakers. This was definitly a year where I felt like I grew the most as a speaker and developer. If you’re looking to become a better speaker or get into being a dev advocate, defintily checkout this talk by Ben Orenstein I also got to be on a bunch of podcasts, Adventurs In Angular, AngularAir, as well as the Web Platform Podcast.…

My dotfiles are my pride and joy. There are hundreds of hours spent tweaking them to create the best setup for me. Recently I’ve started working on three different machines, my Mac, a Windows machine, as well as Ubuntu. This introduced an interesting issue; how can I create a similar environment across all these platforms, but only store them in one location?