blob: 6f841e7faa76ac55e6c7ce52dc5326dc71a9fdfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var angular = require('angular');
angular.module('app', [
// this is what you would do in a real app
// require('angular-cache')
// for the example to work
require('../../dist/angular-cache.js')
]).run(function ($rootScope, CacheFactory) {
$rootScope.test = 'It works! Using ' + (CacheFactory ? 'angular-cache' : 'undefined');
});
|