ionic-in-action / chapter6 Goto Github PK
View Code? Open in Web Editor NEWChapter example for chapter 6 of Ionic in Action
Home Page: http://ionicinaction.com
Chapter example for chapter 6 of Ionic in Action
Home Page: http://ionicinaction.com
If you go to the Heroku site for this page, the Google location API fails to go through with the following error:
Mixed Content: The page at 'https://ionic-in-action-chapter6.herokuapp.com/#/search' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://maps.googleapis.com/maps/api/geocode/json?address=Seattle,+WA'. This request has been blocked; the content must be served over HTTPS.
I git the whole chapter6 project and try it.
I search a location and get the results. But when I click one for detail.
An error happen:
GET http://localhost/api/forecast/42.5475383,-71.2785583?units=us 404 (Not Found)
With this error,I can't get data form Froecast.io
I use git clone the project(step5),then use command ionic serve in web.
The console show the prblrm "404";What I nedd to do other thing to resolve the problem.
The app gets this issue on load:
Deprecation warning: moment().zone is deprecated, use moment().utcOffset instead. moment/moment#1779
Should probably update.
If you change settings from Fahrenheit to Celsius the current conditions , after pushing a favorite, still present the temp in Fahrenheit. Seems that no new data is loded.
Works well in PC but transferred to an mobile via ionic view or as akp it cannot show the current conditions. Why?
hey man, the book is useful.
however when i deploy this project to heroku , it's not work, because of cors.
how did you reslove this problem? thx ;)
my serve.js
var express = require('express');
var app = express();
app.use(express.static('www'));
app.set('port', process.env.PORT || 5000);
app.listen(app.get('port'), function () {
console.log(app.get('port'));
});
my package.json
"engines": {
"node": "6.6.0"
},
"scripts": {
"start": "npm run nodeserver&& npm run ionicserver",
"ionicserver": "ionic serve",
"nodeserver": "node serve.js"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.