reverted changes
[civicrm-core.git] / tools / extensions / org.civicrm.angularex / js / example.js
1 (function(angular, $, _) {
2
3 var resourceUrl = CRM.resourceUrls['org.civicrm.angularex'];
4 var example = angular.module('example', ['ngRoute', 'crmResource']);
5
6 example.config(['$routeProvider',
7 function($routeProvider) {
8 $routeProvider.when('/example', {
9 templateUrl: '~/example/example.html',
10 controller: 'ExampleCtrl'
11 });
12 }
13 ]);
14
15 example.controller('ExampleCtrl', function($scope) {
16 $scope.name = 'world';
17 $scope.ts = CRM.ts('org.civicrm.angularex');
18 });
19
20 })(angular, CRM.$, CRM._);