Part 2: Component Router Lifecycle Hooks & Using ES6 classes in Angular 1.x In part 1 we looked at how router conventions help you stay organized and write less code. Note: Component router is still in development & only available for Angular 1.3+ Now we'll look at something…
Part 1: Component Router Conventions The new-angular-router coming with Angular 1.3+ now has a name: Component router. The Component router is aptly named, as it is designed to help break your project into components (such as directives). Here's a brief overview of some structural changes: It routes to components…
Part 3 6 Ways to use Webpack Require with Angular For some reason, Webpack & Angular reminds me of late 90s Acne commercials. It keeps your code: clean, clear & under control What a terrible way to start a blog post, but I'll stick with it. No regrets. In Part…
Part 2 Complex Webpack Dependencies If you're unfamiliar with Webpack, you might want to checkout Part 1 of this Article on setting up a project with Webpack. This demo will continue from the previous article's code-base. In this article we'll look at loading different types of dependencies: scripts, styles, fonts,…
Part 1 Getting Started There are a lot of module loaders out there: Require.js, JSPM using System.js, to name a few. Eventually the JavaScript community will come around and land on a winning module loader. My guess is Webpack, or something very similar. Go with Webpack. Webpack provides…