Before using the iron router, I connected events using:
Template.templatename.events = {};
Using an iron router, you pass data through the data attribute in the route and usually do not touch the global Template object ... so where should I put the events? Should I continue to use Template.tempaltename.events?
Do you intend to use the global Template object with iron-router?
: "" "". Template.name.events : , , .
Template.name.events
, , , DOM node, -.
, Template.name.events, Template.name.rendered, .created, .deleted, .customDataHelper ..
Template.name.rendered
.created
.deleted
.customDataHelper
, events:
events
Template.name.events({ ... });
.
, . . , , Meteor UI, , , , , .
Source: https://habr.com/ru/post/1502467/More articles:Implications for using an identity column or table homegrown table - sqlto prevent merging any commit / code into a master - gitAutomate composer self-updating using Puppet - phpExtending a language using Racket, defining helper functions with macros - macrosI broke python: what can I do? - pythonFix ruby exclusion elsewhere - ruby | fooobar.comhow to calculate the time complexity for (int i = n - 1; i! = 0; i / = 2)? - algorithmFailed to load file or assembly. 32-bit build on IIS 8.0 - c #How can you run SFTP through pbrun - windowsHow to define a specific socket between User Space and Kernel Space? - cAll Articles