Just when you think you've got TypeScript figured out and are using es6 (es2015) module loading you discover your unit tests fail. Don't worry. It's not you, it's Mocha.
Writing an Angular controller using the controllerAs syntax has helped improve our code and nearly eliminate the need to inject $scope. This post will go over writing your controllers as classes in TypeScript to take that concept to the next level.
Sometimes we need a little help to get things done in the most effiecient and safest possible way. Just like construction workers wear hard hats to keep them safe from falling debris, JavaScript developers need protection from unforseen hazards too. TypeScript is our hard hat.
I tend to stick with the $http service as it works well and has no suprises. But, I can see the allure of the $resource service. Here's a really brief demo.
Both ngRepeat and ngOptions give you the ability to populate a list of options in a select input. Each has their place and I'm going to demonstrate where you'd use them.
There's more than one way to watch a property on your scope in Angular. I'll show you the best way to setup a watch using TypeScript.
Working in Visual Studio and using Task Runner Explorer makes running gulp tasks within the IDE super convenient. But when Visual Studio crashes (all too often) and your watch task is still running in the background, you need a way to stop the process so you can start it again or run other gulp tasks.
Most AngularJS tutorials lead new developers down a dark and narrow path. Once your app has more than a few controllers and templates, things start to break down and you'll end up refactoring the entire application.
I've started a new project and I'm sharing my progress, struggles, and successes along the way.
I routinely use the following commands in my daily work. They might be helpful to other web developers out there.
THE PROBLEM: You've got a single page that processes a lot of information and you need to break it into small, digestible steps for users.
Every so often I'm asked how someone might get started as a web designer or developer. These are my thoughts and are based on my own experience.
Everyone watches videos on YouTube. And YouTube allows anyone with a website to embed their videos wherever they want. But there's a problem with YouTube's service and little to no documentation about it.
Dribbble is an elite community of designers sharing what they're working on. For years I have cursed the site and it's eliteness. Today, I have been drafted.
Gone are the days of adding target='_blank' to each and every link on a page. jQuery, the superhero of the Internet, saves the day once again.
It's an age old question and one most web professionals cringe at when they're asked it. Pricing a website doesn't take a one-size-fits-all approach.
You may have a need to hightlight keywords in a string. This plugin takes your string and your list of keywords and outputs a new string with all of the keywords highlighted.
Centering a block horizontally is no problem. Centering an absolute positioned block has its challenges. Vertically centering anything on a page can make you pull your hair out. That is, until now.
Mobile is going to be huge. OK. OK. It is HUGE! Here are some simple thoughts for small business owners to get comfortable with a responsive website.
There's a huge market in email newsletter providers. I list my favorites. You can draw your own conclusions.
The child is born. Our beautiful (handsome) baby boy was delivered by stork on Monday, August 19th.
Life has a way of reminding you what is important. Social media has everyone fooled. While we believe we are building stronger relationships with each other, we are actually weakening the relationships that are the most important to us.
I love listening to podcasts during my commute to and from work. And I love finding new podcasts. But there isn't an up-to-date podcast directory that I rely on to discover new shows. Hence, create your own.
To avoid confusing search engines, it's important to have a properly configured 301 redirect for your base domain. You must decide whether to use the 'www' sub-domain or to ditch the antiquated prefix in favor of a cleaner URL.
As web designers, it's our duty to ensure a website's goals are in-line with our visitors goals. Design should never get in the way, but rather enhance the the users experience of consuming the content.
Apple's reveal of its new iOS7 operating system last week was accompanied by widespread predictions about the demise of skeuomorphic design.
There is so much I don't know about web development. Here are the languages or practices I hope to learn in the near future.
Embedding Google Maps on your website requires set width and height attributes. As a result, the map does not scale to fit the width of its container. Therefore, no responsive goodness....until now!
Tynker is providing resources to elementary schools that help develop basic computer knowledge and programming skills.
You've seen CAPTCHA form fields before. You know they prevent spam entries. But you might not know how Google uses them.
One of the best things about WordPress is its limitless functionality. With the use of plugins, a WordPress install can be transformed with great ease.
Designing a mobile web experience is not the same as designing a mobile app.
The debate of whether or not cookies are safe for users has been contested for years. Here are some of my thoughts on the matter.
This is primarily for my own use. Searching for Subversion help on Google can be a daunting task. At some point I stumbled upon this gem and felt it important enough to share.
When you need to corral WordPress to output your data where filters aren't practicle, write a custom function.
A helpful function that takes a UNIX timestamp and reports how many days ago that time occured.
Google Suggest, which is an extremely useful and powerful tool that allows you to find what you need quickly, fails our children by exposing them to damaging material.
How you handle bad reviews or criticism can have a severe effect on your business.
The majority of websites I visit from my mobile phone have not yet embraced Responsive Web Design. Not familiar with this term? Keep reading.
You could hire your nephew or your neighbor's kid to design your website and have a subpar web presence. Or you could hire a professional web designer. It's your choice.
Not all Web Developers are created equal. This simple guide explains differences in web developers and how to go about hiring one.
A summary of my experience at the 2012 Portland WebVisions Conference.
Here's some tips and tricks for all you social marketing students out there.
Capturing the attention of new customers is always challenging. Here's a dumbed-down example of how conent marketing works.
Distractions can come from anywhere. I stay focused in my work by following these simple rules.
Every now and then something comes along to disrupt peace and sanity in the world. Facebook has had a firm grip on our attention since its launch. Here are some numbers. Make your own conclusions.