d89200ad24
By default, TypeScript will emit `"use strict"` directives, so it is not necessary to include `'use strict'` in `.ts` files: https://www.typescriptlang.org/docs/handbook/compiler-options.html#:~:text=--noImplicitUseStrict PR Close #38143
18 lines
508 B
TypeScript
18 lines
508 B
TypeScript
angular.
|
|
module('phonecatApp').
|
|
config(['$locationProvider', '$routeProvider',
|
|
function config($locationProvider: angular.ILocationProvider,
|
|
$routeProvider: angular.route.IRouteProvider) {
|
|
$locationProvider.hashPrefix('!');
|
|
|
|
$routeProvider.
|
|
when('/phones', {
|
|
template: '<phone-list></phone-list>'
|
|
}).
|
|
when('/phones/:phoneId', {
|
|
template: '<phone-detail></phone-detail>'
|
|
}).
|
|
otherwise('/phones');
|
|
}
|
|
]);
|