Use : Template.MyNameTample.onRendered Example : Template.PaymentResult.onRendered(function() { $(window).scrollTop(0); var instance = Template.instance(); instance.autorun(function() { processando.set(true); run(); }); }); Here in this … More
Tag: meteor
Meteor Js : How to show an animation of an engine running while processing?
For do this you can use the package : sacha:spin You need : meteor add sacha:spin And add in your … More
Meteor Js : How to calling synchronous methods ?
For do this you need use Future. Create : var Future = Npm.require( ‘fibers/future’ ); In your call use : … More
MeteorJs : How to use meteor Js + Neo4J database ?
Install Neo4j : $ brew install neo4j Start the Neo4j in your machine : $ neo4j start Go to console and configure … More
MongoDB: How to do any consult ignoring case sensitive?
You need use a regex function . Example : var name = $(‘.name’).val(); var regex = new RegExp([“^”, name, “$”].join(“”), … More
MongoDB: How to do any consult with dates ?
First you need save in date format in your MongoDB. Example: var dtStart = new Date(moment(dts).format(“MM/DD/YYYY HH:MM”)); var dtEnd = … More
Meteor JS: Flow-Router – How to take the value from any param of the route ( url ) ?
Use: FlowRouter.getParam(“NAME_PARAM”) Example: Route : URL : http://localhost:3000/clientText/hjmusRA6wpL9JgBNp/list/15 CODE OF THE ROUTE: FlowRouter.route(‘/clientText/:client/list/:amount’,{ { … } }); CODE TO TAKE … More
Meteor JS: Flow-Router – Excelente way to create routes in your Meteor application
Flow-Router https://github.com/kadirahq/flow-router https://kadira.io/academy/meteor-routing-guide/content/introduction-to-flow-router https://atmospherejs.com/meteorhacks/flow-router meteor add meteorhacks:flow-router FlowRouter is a very simple router for Meteor. It is focused only on … More
Meteor JS : How to take data of an object in specific ?
For do this, you can use in html file : {{#with object}} {…} {{/with}} In your javascript file you need create … More
JavaScript + Meteor JS : How to open a link in new window ?
Use : var win = window.open(url, ‘_blank’); win.focus(); Example in a Meteor Js application: clip.file <template name=”Clip”> <div class=”card-container”> {…} … More