Skip to content

Instantly share code, notes, and snippets.

@pichsenmeister
Last active December 21, 2015 03:48
Show Gist options
  • Save pichsenmeister/6244750 to your computer and use it in GitHub Desktop.
Save pichsenmeister/6244750 to your computer and use it in GitHub Desktop.
angularJS and typescript app.js
/// <reference path='_all.ts' />
module angularTs {
'use strict';
var showcase = angular.module('showcase', []);
showcase.controller('firstCtrl', FirstCtrl.prototype.injection());
showcase.controller('secCtrl', SecCtrl.prototype.injection());
showcase.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/first', {templateUrl: 'partials/part1.html', controller: 'firstCtrl'}).
when('/second', {templateUrl: 'partials/part2.html', controller: 'secCtrl'}).
otherwise({redirectTo: '/first'});
}]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment