Werner Laude

Joined

860 Experience
8 Lessons Completed
0 Questions Solved

Activity

Posted in Nested Comment Threads in Rails - Part 1 Discussion

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

Posted in Connecting Ember with the Rails API Discussion

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?

Posted in Connecting Ember with the Rails API Discussion

You are right.. Thanks..

Posted in Connecting Ember with the Rails API Discussion

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