• About Morris Development
  • A Focus for Cloud Efficiency
    • Microsoft Azure
    • Amazon Web Services
  • What our Clients Say
  • Our Products
    • PreschoolDB
    • WebinarDB
  • Contact Us

Morris Development

Custom System Development and Integration

April 4, 2016

Basic Template for a TypeScript controller


After making almost 100 controllers for one system, we’ve established a standardized method for controllers. It’s not complex or exciting, but it’s saved us enough time that we decided to keep it on our site.

Article by MacGyver / AngularJS, TypeScript

January 22, 2016

Angular Factories with TypeScript

To make our code as easy to maintain as possible, we keep all data interactions in modules called Factories. Most of our factory files have about 10 or 12 callback functions and we try to keep them pretty simple. Moving them to typescript wasn’t very intuitive at first, but once we figured it out, it is a no-brainer.

Here’s a basic sample that we used to get a list of offices from the api server. You can add as many functions as you want.

Article by MacGyver / AngularJS, TypeScript

January 22, 2016

Angular Controllers with TypeScript

We’ve moved much of our code over to TypeScript. There are a lot of benefits. To start, you can just dump your javascript files directly into typescript “.ts” files and it will compile them for you and web-essentials plugins will minify them for you everytime you click “save”.

The next step is to take advantage of the programming language and start using it as a real tool. The most effective approach to dealing with AngularJs in TypeScript, for me, has been to simply turn every controller and factory into a class object.

While you can go “all in” and make everything uber-typescripted, it is often easiest to just stick to a few basics and work with that for larger projects, especially when we’ve got 5 or 6 people of varied skill levels all working on the same project. Let’s keep it simple!

So, here is a basic rundown of making an Angularjs controller and using a factory to get some data over to it.

Article by MacGyver / AngularJS, TypeScript

  • « Previous Page
  • 1
  • 2
  • 3
  • 4

About This Site

Morris Development has been specializing in internal database system design and integration since 1999. We provide long-term management and support of secure data systems for many businesses as well as developing the more complex code structures for ERP systems like Intellievent, Apidas, and AVMS.

This site is primarily for our developers to keep track up various technologies and updates that are used by Morris Development.

Training

Integrating Angular Microsite with .Net

Private Data Caching with Google Storage

Continuous Deployment for Production Releases?

Azure Websites – the perfect Angular host

Angular 2

  • Angular 2 Authentication
  • Angular Command Line Interface
  • Material Design for Angular
  • Using Observables in Angular 2

Mentors

  • Ben Nadel
  • Dan Wahlin
  • Deborah Kurata
  • John Papa

Staff

  • Dan Morris

Training

  • Google Development Courses
  • Microsoft Virtual Academy
  • PluralSight
  • Test Deep Links

© 2025 · Morris Development