Last active
December 21, 2015 03:48
-
-
Save pichsenmeister/6244750 to your computer and use it in GitHub Desktop.
angularJS and typescript app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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