Gave a lunch and learn today on AngularJS with TypeScript. The talk covered a brief history of static typing (ECMA4, ActionScript), some contemporary projects (Flow, AtScript), and how Angular2.0’s default language is TypeScript. The second half is a brief tutorial on how to write services, controllers, and directives.
Category Archives: AngularJS
Use ui-router Even if You Aren’t Routing
You should be using ui-router to organize your AngularJS application’s UI, even if you do not expose corresponding URLs. The name ui-router is misleading: its real power is organizing your UI into named, nested, or parallel views. The state concept offers a higher-level alternative to using ng-include
and ng-controller
, and is more suited to modeling large areas of the UI than custom directives.