Angular path and angular path
When writing a project, we will see the boot page to the boot page, and the boot page to the home page,
When we use angular framework to write such things, if we are not careful, we will encounter problems,
For example, you cannot find images on the boot page.
So how can we solve this problem?
First, we need to make it clear that the angular framework we use should be used to solve this problem,
Instead of using the path step by step based on the original idea.
Next let's take a look,
1. Jump to the boot page
App. controller ("zeroController", function ($ timeout) {var timer = $ timeout (function () {location. href = "#/enter"; // note the jump path}, 1000 );});
2. Jump to the home page on the boot page
// Boot page app. controller ("enterController", function ($ scope) {// Touchmove () events triggered when the finger moves on the screen, when the finger moves on the screen, the browser's document should be blocked. addEventListener ("touchmove", function (e) {var ev = e | e. widows; ev. preventDefault () ;}, {passive: false}) ;}( Zepto); $ scope. enter = function () {location. href = "index.html #/reg"; // error notes }});