Werner Laude
Joined
Activity
There is one trap to take care for: If your are using https://pagespeed.web.dev/ (Googles SEO tool) - you will get a -406 not acceptable - error. Looks like the pagespeed crawler is not recognized.
For some reason...you often create episodes just fitting in my current needs..thanks.
Thanks for that fast replay...
I am just beginning with VueJs..
So I found this working for me..
<div id="locations">
<login v-if="token==null"></login>
<logout v-else=""></logout>
<temperature v-if="token!=null"></temperature>
</div>
<script type="text/x-template" id="logout-template">
<form>
<button v-on:click="submit">Logout</button>
</form>
</script>
Vue.component("logout",{
template: "#logout-template",
methods: {
submit: function(event){
localStorage.removeItem('token');
}
}
});
Great idea to combine Rails Api + VueJs..
Can you give me an idea how to 'logout'?
Something like... localStorage.removeItem?
Thanks Chris
Does anybody know a nice tut how to deploy both (rails+ember) apps and make it work online. So I get to know the basics?
You are right.. Thanks..
Great.. introducing ember to me..
I was stuck at that point proxy to localhost.3000. Then I got it working.
fill the .ember-cli => "proxy": "http://localhost:3000" /// not working
throw "Error when parsing file in " + path + ". Make sure that you have a valid JSON."
Can you pls. comment? Thanks