Showing posts from June, 2017

Creating Buttons That Act Like Links in Angular

While working on a pet project in Angular tonight, I wanted to create some buttons that act like links. Turns out, this is easy -- just apply the routerLink directive to a button and it will act like a link. Here's an example:

<button class="btn btn-success" routerlink="/exercises/edit">Edit an Exercise</button>

A Weird Coincidence

Yesterday while heading out at lunchtime I saw someone who reminded me of an old coworker named Avi. I'd worked with Avi at two separate jobs, non-consecutively, and we hadn't kept in touch in between them, so it was an example of how small the world can be at times. When I saw this person yesterday who reminded me of Avi, I remembered how he'd had a good working relationship with one of our business clients named Jack, and how Jack had referred me to his brother Jeff when I needed to find someone to do some home improvement work for me. I haven't spoken to any of them in 4 years, and only ever spoke to Jeff once.

Today, while in a meeting shortly before lunchtime, my phone rang. It was Jeff.

I couldn't believe it. I hadn't spoken to him in years, he crossed my mind out of the blue yesterday, and today he called. What could this guy that I didn't really know and whom I'd only ever spoken to once, 4 years ago, for about 5 minutes, be calling me about? Be…