Sha256: 26df1070e2880377ba53822628d5c7657636ce68affe4e56f4cbb44676319e21

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

var app;

app = angular.module('app', ['ngRoute', 'ngStorage', 'ngMaterial', 'users']);

app.constant("myConfig", {
  title: 'mango {fruit}'
});

app.config([
  '$mdThemingProvider', '$mdIconProvider', function($mdThemingProvider, $mdIconProvider) {
    $mdIconProvider.defaultIconSet('./assets/svg/avatars.svg', 128).icon('menu', './assets/svg/menu.svg', 24).icon('share', './assets/svg/share.svg', 24).icon('google_plus', './assets/svg/google_plus.svg', 512).icon('hangouts', './assets/svg/hangouts.svg', 512).icon('twitter', './assets/svg/twitter.svg', 512).icon('phone', './assets/svg/phone.svg', 512).icon('person_add', './assets/svg/ic_person_add_48px.svg', 48).icon('clear', './assets/svg/ic_clear_48px.svg', 48).icon('plus', './assets/svg/ic_add_48px.svg', 48).icon('cog', './assets/svg/ic_settings_48px.svg', 48).icon('delete', './assets/svg/ic_delete_48px.svg', 48).icon('lock', './assets/svg/ic_lock_48px.svg', 48).icon('share', './assets/svg/ic_share_48px.svg', 48).icon('music', './assets/svg/ic_music_note_48px.svg', 48).icon('note_add', './assets/svg/ic_note_add_48px.svg', 48).icon('fullscreen', './assets/svg/ic_fullscreen_48px.svg', 48).icon('fullscreen_exit', './assets/svg/ic_fullscreen_exit_48px.svg', 48);
    $mdThemingProvider.theme('default').primaryPalette('deep-orange').accentPalette('blue').warnPalette('red').backgroundPalette('grey');
  }
]);

app.config([
  '$routeProvider', function($routeProvider) {
    $routeProvider.when('/tutorial', {
      templateUrl: 'js/tutorial/tutorial.html'
    }).when('/blobs', {
      templateUrl: 'js/blobs/blobs.html',
      controller: 'BlobsController'
    }).when('/blobs/:id', {
      templateUrl: 'js/blobs/blobs.html',
      controller: 'BlobsController'
    }).otherwise({
      redirectTo: '/blobs'
    });
  }
]);

app.config([
  '$localStorageProvider', function($localStorageProvider) {
    $localStorageProvider.setKeyPrefix('app');
  }
]);

app.run(function($rootScope, myConfig) {
  $rootScope.myConfig = myConfig;
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ki-0.4.12 spec/examples/json.northpole.ro/public/app/build/js/app.js
ki-0.4.11 spec/examples/json.northpole.ro/public/app/build/js/app.js