Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
  5. <script scr="index/angular-route.js"></script>
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  7. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  8. <script src="index/index.js"></script>
  9. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
  11. <link rel="stylesheet" href="index/index.css">
  12. <link href='http://fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  13.  
  14. </head>
  15. <body ng-app="indexPage">
  16. <header>
  17. <ul class="nav nav-tabs">
  18. <li><a href="#about-me"> About Me </a></li>
  19. <li><a href="#education"> Education </a></li>
  20. <li><a href="#skillAndProject"> Skills & Projects </a></li>
  21. <li><a href="#experience"> Experience </a></li>
  22. </ul>
  23. </header>
  24. <div class="container">
  25. <div class="content" style="padding-left:15px; padding-right:15px;">
  26. <br>
  27. <div class="ng-view"></div>
  28. </div>
  29. </div>
  30. </body>
  31. </html>
  32.  
  33. /* angularJS implement */
  34. (function(){
  35. var app = angular.module('indexPage',['ngRoute']);
  36.  
  37. app.config(['$routeProvider',
  38. function($routeProvider) {
  39. $routeProvider.
  40. when('/about-me', {
  41. templateUrl: 'templates/about_me.html',
  42. controller: 'AboutMeController'
  43. }).
  44. when('/education', {
  45. templateUrl: 'templates/education.html',
  46. controller: 'EducationController'
  47. }).
  48. when('/skillAndProject', {
  49. templateUrl: 'templates/skillAndProject.html',
  50. controller: 'SkillAndProjectController'
  51. }).
  52. when('/experience', {
  53. templateUrl: 'templates/experience.html',
  54. controller: 'ExperienceController'
  55. }).
  56. otherwise({
  57. redirectTo: '/about-me'
  58. });
  59. }]);
  60.  
  61. //Controllers
  62. app.controller('IndexController', function(){
  63. });
  64. app.controller('AboutMeController', function(){
  65. });
  66. app.controller('EducationController', function(){
  67. this.educations = educations;
  68. this.courses = courses;
  69. });
  70. app.controller('SkillAndProjectController', function(){
  71. this.skills = skills;
  72. });
  73. app.controller('ExperienceController', function(){
  74. this.experiences = experiences;
  75. });
  76.  
  77. /*
  78. JSON String Stores here
  79. */
  80.  
  81. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement