Simple landing page for my website

app.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. /**
  3. * @ngdoc overview
  4. * @name landingPageApp
  5. * @description
  6. * # landingPageApp
  7. *
  8. * Main module of the application.
  9. */
  10. angular
  11. .module('landingPageApp', [
  12. 'ngAnimate',
  13. 'ngSanitize',
  14. 'ngTouch',
  15. 'ui.router',
  16. 'ngFx',
  17. 'analytics.mixpanel'
  18. ])
  19. .config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function($stateProvider, $urlRouterProvider, $httpProvider) {
  20. // Configs
  21. //Enable cross domain calls
  22. $httpProvider.defaults.useXDomain = true;
  23. //Remove the header used to identify ajax call that would prevent CORS from working
  24. delete $httpProvider.defaults.headers.common['X-Requested-With'];
  25. // UI router
  26. // For any unmatched url, redirect to /state1
  27. $stateProvider
  28. .state('main', {
  29. url: "/",
  30. templateUrl: 'views/main.html',
  31. controller: 'MainCtrl'
  32. })
  33. .state('now', {
  34. url: "/now",
  35. templateUrl: 'views/now.html',
  36. controller: 'NowCtrl'
  37. })
  38. $urlRouterProvider.otherwise("/");
  39. }])
  40. .config(['$mixpanelProvider', function($mixpanelProvider) {
  41. $mixpanelProvider.apiKey('118b90241623134a3468019b0917b85b'); // your token is different than your API key
  42. }]);