array.forEach(function(entry) { alert(entry); } Example : if ( event.attractions ){ var att = []; event.attractions.forEach(function(entry) { if (entry.artist){ att.push(entry.artist); } … More
Author: camilamacedo86
Meteor JS : The if syntax in html files
The syntax is : {{#if conditional}} {{else}} {{/if}} Example : {{#if isShowFavorite}} <a href=”#” class=”btn btn-default btn-xs pull-right favorite” role=”button” … More
JavaScript : How to remove some item from an array ?
One way to remove some item is take his position on array and remove by this. Example: var users = … More
Meteor JS : Excellent centralizer web site of posts on Meteor JS
If you know more about Meteor JS visit this web site : https://crater.io
Meteor JS : Velocity – Oficial Meteor Testing
Really nice video !! Perfect to start !!
Meteor JS : How to pass parameters to helpers functions?
Make you function like that and you can call from html file. ‘myFunction’:function(param) { {…} } Example placePage.html <template name=”PlacePage”> … More
Meteor JS : Nice package to create screen components range of dates. (Bootstrap datepicker)
loftsteinn:bootstrap3-daterangepicker https://atmospherejs.com/loftsteinn/bootstrap3-daterangepicker http://www.daterangepicker.com/ According to the documentation would just add the package and use it. But with me it didn’t … More
Regex : How to remove spaces from the left of a string with Regex
Use : replace(/\s+$/,””); Example : var test = ” xxxxx – yyyyyyy”; var firstResult = test.split(“-“)[0].trim(); // ” xxxxx” var … More
Meteor JS: Validating an email quickly
This code can be used in other technologies too. Example: mine.html <input type=”text” class=”email form-control” placeholder=”E-Mail” value=”{{currentUser.profile.details.email}}”> mine.js if ( … More
[Meteor JS ]: How to clear my meteor mongoDB?
Use : meteor reset