Comments (9)
I'm sorry, I'm not going to clone it and put it in Apache. It sounds like you're having trouble with your apache configuration. Couch Potato works fine in html5mode. I suggest you look at your apache configuration. Nothing about Couch Potato cares which web server you use. The samples include a simple node express server that is configured for html5 mode.
from angular-couch-potato.
I solved it.
I comment baseUrl in index.html, html5mode and change templateurl in routes, and prepend "#" to all links in html.
There is no need to change config in web server. That's what i want.
在 Oct 21, 2013,3:07 AM,Stu Salsbury [email protected] 写道:
I'm sorry, I'm not going to clone it and put it in Apache. It sounds like you're having trouble with your apache configuration. Couch Potato works fine in html5mode. I suggest you look at your apache configuration. Nothing about Couch Potato cares which web server you use. The samples include a simple node express server that is configured for html5 mode.
—
Reply to this email directly or view it on GitHub.
from angular-couch-potato.
@kuma0605 you didn't solve the problem though, you just did the hash solution...
from angular-couch-potato.
The hash url is not html5Mode..
from angular-couch-potato.
One way or the other, I think the takeaway message should be that couch potato doesn't really care about html5 mode one way or the other, and works just fine in either mode, but like the rest of angular's html5 mode, you need to configure your web server properly for it to work.
The script files should all end in .js
. When I do html5 mode I just route everything that does not containa a .
character to index.html and call it a day.
from angular-couch-potato.
while implementing "$locationProvider.html5Mode(true).hashPrefix('!');". When i refresh the page eg: url: localhost:8000 /project.
i am getting issue in page " NOT FOUND ". Any one can help me where i am wrong..
from angular-couch-potato.
It sounds like your server isn't properly configured for html5-mode routing.
from angular-couch-potato.
my server is working fine. i m getting the result but after reload or refresh the page it showing " NOT FOUND "
from angular-couch-potato.
Well, yours is the classic symptom of not having configured the server properly. Please open a separate issue with diagnostic information that shows that your browser is getting the proper files from the server when you refresh if you'd like to get some help. You can easily create a capture of the initial page load that works combined with what happens when you refresh by following the instructions to create a HAR file. Thanks.
from angular-couch-potato.
Related Issues (20)
- testing HOT 22
- test issue
- Add http interceptor factory HOT 1
- Enter state after vendor library is loaded. HOT 25
- document registerConstant support HOT 4
- Lazy loaded directive is not applied on the controller's view HOT 1
- Example of ad-hoc module loading HOT 5
- how to lazy load a controller whose name has a variable from the $stateParams in resolve's dummy?
- Add minify js file
- ready doesn't fire in angular 1.0.7? HOT 5
- super lazy : both html and js HOT 1
- Whether to support cmd?
- Add support for registerComponent
- sample ui-router example code is not work HOT 1
- AngularUI Router HOT 1
- where is server.js? HOT 1
- What about the documentation? HOT 2
- How to load the Main Controller? HOT 4
- Guidance on how to get Directives in HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-couch-potato.