connect-modrewrite

Livereload Html5 Pushstate with AngularJS, ui.Router and yeoman

心已入冬 提交于 2019-11-29 09:51:03
问题 I want to fix the livereload with my angular js app. I am using yoeman ui-router with html5 push state. What do a have to do? 回答1: The index For the searchengines you have to add the following to the <head> of your index.html <meta name="fragment" content="!"> <base href="/"> The app In your app.js you have to inject the following dependencies and add the functions. angular .module('yourApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngSanitize', 'ui.router', ]) .config(function (