Created
October 8, 2014 07:52
-
-
Save nacady/11e9e7b55bcd7a130f99 to your computer and use it in GitHub Desktop.
reloadable html5Mode with yeoman/generator-angular ref: http://qiita.com/nacady/items/ae2f71bb91e3cc818644
This file contains 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 characters
angular | |
.module('angularApp') | |
.config(['$locationProvider', function($locationProvider) { | |
$locationProvider.html5Mode(true); | |
}]); |
This file contains 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 characters
$ npm install --save-dev connect-modrewrite |
This file contains 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 characters
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<base href="/"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment