Blog Archive

Tag: JavaScript

  1. Built-In and Custom AngularJS Filters

    Kayla Funke

    Now that you know how to write custom AngularJS directives and how AngularJS helps validate forms, let’s move on to the next great feature. AngularJS filters make it easy to display a subset of items from a collection. They are used with directives like ng-options and ng-repeat. Read this guide to learn how to decipher their…

    Read more »
  2. How to Write Custom AngularJS Directives

    Kayla Funke

    Much of Angular’s built-in functionality is provided by modular slices of code called directives. You can write custom directives to perform form validation, to minimize code repetition, to attach events to elements, to inject markup into templates, and more. Directives are so powerful that their usefulness is limited only by how well you understand them.…

    Read more »
  3. Using MVC to Avoid Magic Numbers in Your JavaScript

    David Murphy

    Hard-coding “magic numbers” in your code has always been a problem for several reasons: they’re not meaningful, they’re difficult to search for reliably, and the chance of using the wrong value is unacceptably high. The first improvement was preprocessor macros in C:

    Read more »
  4. TypeScript 101: Benefits and How To Install It

    Jeffrey Woltz

    TypeScriptLang tells us that “TypeScript is a superset of JavaScript that compiles to plain JavaScript.” Therefore, it is essentially JavaScript, but with Object-Oriented features and keywords to help keep your code clean and maintainable. This blog post is a TypeScript 101 of sorts in which I will explain why you should use it and how…

    Read more »