Last active
February 23, 2022 03:59
-
-
Save leocaseiro/4305e06948aa97e77c93 to your computer and use it in GitHub Desktop.
Revisions
-
leocaseiro revised this gist
May 24, 2015 . 1 changed file with 7 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,16 +3,17 @@ <head> <meta charset="utf-8" /> <title>List</title> <base href="/app/"><!-- Make sure the base is above your stylesheet --> <meta name="fragment" content="!" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="css/app.css" /> </head> <body> <ng-view></ng-view> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-route.min.js"></script> <script src="js/controllers/ListController.js"></script> <script src="js/controllers/EditController.js"></script> </body> </html> -
leocaseiro revised this gist
May 24, 2015 . 2 changed files with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,11 @@ var app = angular.module('myApp', ['ngRoute']) templateUrl: 'templates/new.html', controller: 'EditController' }); //Default URL $routeProvider.otherwise({redirectTo:'list'}); //html5Mode don't need /app/#/ anymore, just /app/ $locationProvider.html5Mode(true).hashPrefix('!'); //the hashPrefix is for SEO }) ; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,7 @@ </head> <body> <ng-view></ng-view> <script src="./lib/angular/angular.js"></script> <script src="./lib/angular/angular-route.min.js"></script> <script src="./js/controllers/ListController.js"></script> -
leocaseiro revised this gist
May 24, 2015 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,3 +7,11 @@ <base href="/app/"> <meta name="fragment" content="!" /> </head> <body> <ng-view></ng-view> <script src="./lib/angular/angular.js"></script> <script src="./lib/angular/angular-route.min.js"></script> <script src="./js/controllers/ListController.js"></script> <script src="./js/controllers/EditController.js"></script> </body> </html> -
leocaseiro created this gist
May 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^(.*) /app/index.html [NC,L] </IfModule> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ var app = angular.module('myApp', ['ngRoute']) .config(function($routeProvider, $locationProvider) { $routeProvider.when('/list', { templateUrl: 'templates/list.html', controller: 'ListController' }); $routeProvider.when('/new', { templateUrl: 'templates/new.html', controller: 'EditController' }); //Default URL $routeProvider.otherwise({redirectTo:'list'}); }) ; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <!doctype html> <html ng-app="myApp"> <head> <meta charset="utf-8" /> <title>List</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <base href="/app/"> <meta name="fragment" content="!" /> </head>