I nostri esperti hanno raccolto questi MCQ Meteor - JavaScript Web Framework attraverso la ricerca. Ci auguriamo che, rispondendo a queste domande a scelta multipla, possiate testare la vostra conoscenza di Meteor - JavaScript Web Framework.
Scorri verso il basso per iniziare subito!
A. if (meteor.isserver) {meteor.invoke ("sampleMethod"); }
B. if (meteor.isclient) {meteor.invoke ("sampleMethod"); }
C. if (meteor.isserver) {meteor.call ("samplemethod"); }
D. if (meteor.isclient) {meteor.call ("samplemethod"); }
A. accesso
B. negare
C. permettere
D. consente -worng ands
A. ID utente
B. nome utente
C. ConnectionId
D. ClientAddress
A. Router.route ('/files/: name_of_file', function () {// action}, {run: 'server'});
B. Router.route ('/files/: name_of_file', function () {// action}, {dove: 'server'});
C. Router.route ('/files/: name_of_file', function () {// action}, {route: 'server'});
D. Router.route ('/files/: name_of_file', function () {// action}, {at: 'server'});
A. Template name = "home"> {{#markdown}} ## Benvenuti nel mio sito {{/markdown}} </template>
B. Template name = "home"> {{markdown}} ## benvenuto nel mio sito {{/markdown}} </template>
C. Template name = "home"> {markdown} ## benvenuto nel mio sito {/markdown} </template>
A. creato
B. oncreated
C. sudoyd
D. reso
A. Tracker.computation.stop ();
B. Tracker.autorun.stop ();
C. Tracker.computation.halt ();
D. Tracker.autorun.end ();
A. Meteor Aggiungi account Account-Password
B. Meteor Aggiungi account utente-password
C. Meteor Aggiungi account Accounts-UI Account-Password
D. Meteor Aggiungi l'utente utente-password
A. reattivo-json
B. DICT reattivo
C. reattivo-var
D. Tutti questi. -Wong Ans
A. caricato
B. reso
C. pronto
D. dentro
A. Http.post ("http: // someurl", postdata, ...);
B. Http.get ("http: // someurl", ...);
C. Http.request ("get", "http: // someurl", ...);
D. Http.call ("get", "http: // someurl", ...);
A. La ricerca di espressione regolare è in tempo reale
B. La ricerca di espressione regolare può corrispondere a parole parziali
C. La ricerca di espressione regolare è molto efficiente
D. La ricerca di espressione regolare non supporta le ricerche per jolly
A. Iscrizione dell'utente
B. Verifica email
C. Resetta la password
D. Tutti questi.
A. {{> loginbuttons}}
B. {{> logintropdown}}
C. {{> login}}
D. {{> loginform}}
A. forme di accesso
B. Forme di conti
C. Contagesti-Ui-Unstyled
D. Accounts -ui -Wong Ans
A. db.leaderboard.ensureIndex ({point: 1})
B. db.leaderboard.ensureIndex ({mese: 1})
C. db.leaderboard.ensureIndex ({fullname: 1})
D. db.leaderboard.ensureIndex ({anno: 1})
A. ripetere
B. ogni
C. per ciascuno
D. Mappa -Wong Ans
A. Meteor Aggiungi #Markdown
B. meteor aggiungi markdown
C. Meteor Aggiungi modello di markdown
D. Meteor Aggiungi modello: Markdown
A. Return template.instance (). Counter.get ();
B. Return this.counter.get ();
C. Return template.CurrentData (). Counter.get ();
D. Return template.instance (). Data.counter.get ();
A. {{#con}}
B. {{#contesto}}
C. {{con}}
D. {{contesto}}
A. onredizzato
B. creato
C. reso
D. OnDestroyed -Wong Ans
A. Todos.find ({Ord: {data: -1}}, {limite: 10})
B. Todos.find ({}, {limite: 10, ordin: {data: -1}})
C. Todos.find ({}, {limite: 10, ordin: 1})
D. Todos.find ({}, {limite: 10, ordin: -1})
A. Meteor.publish ('getcollaborators', function (appid) {return users.find ({collaboratori: appid});});
B. Meteor.publish ('getcollaborators', function (appid) {return users.find ({apps: appid});});
C. Meteor.publish ('getcollaborators', function (appid) {var app = apps.findone ({_ id: appid}); if (app) {return users.find ({_ id: {$ in: app.collaborators}})) ;} else {this.ready ();}});
D. Meteor.publish ('getcollaborators', function (appid) {var app = apps.findone ({_ id: appid}); return users.find ({_ id: {$ in: app.collaborators}}});});
A. Json
B. impostato
C. Ejson
D. Ottenere
A. $ set
B. $ inc
C. Trovare
D. trova tutto
A. Meteor.account.allow ()
B. Meteor.permission.allow ()
C. Meteor.roles.allow ()
D. Meteor.users.allow ()
A. forme di accesso
B. Forme di conti
C. Contagesti-Ui-Unstyled
D. Accounts -ui -Wong Ans
A. Accounts.config ({CloseClientAccountCreation: true});
B. Accounts.Config ({ForbidAccountCreation: true});
C. Accounts.config ({forbidClientAccountCreation: true});
D. Accounts.Config ({ClosEACCountCreation: true});
A. satelizer
B. Contagonti-Base
C. Auth-Strategy
D. Base autentica
A. Due applicazioni: A e B
B. Una collezione condivisa: post
C. Un database condiviso tramite Mongo_url
D. Tutti i precedenti
A. Vettore
B. Banca dati
C. Modello
D. Dati
A. come assicurarsi che vengano utilizzate le chiavi giuste
B. assicurandosi che i nomi dei nostri team siano univoci
C. Impostare un limite di carattere massimo in modo che i nomi dei nostri team non siano troppo lunghi
D. Tutti i precedenti
A. if (meteor.isclient) {meteor.methods ({'sampleMethod': function () {console.log ("Hello World");}}); }
B. if (meteor.isserver) {meteor.methods ({'sampleMethod': function () {console.log ("Hello World");}}); }
C. if (meteor.isclient) {meteor.methods ({funzione sampleMethod () {console.log ("Hello World");}}); }
D. if (meteor.isserver) {meteor.methods ({funzione sampleMethod () {console.log ("Hello World");}}); }
A. {{-> myTemplate}}
B. {{<myTemplate}}
C. {{> myTemplate}}
D. {{myTemplate}}
A. reattivo-json
B. DICT reattivo
C. reattivo-var
D. Tutti questi. Ans sbagliato
A. reattivo-json
B. reattivo-bett
C. reattivo-var
D. Tutti i precedenti
A. var mydate = ejson.parse (myjSondate);
B. var mydate = json.fromjsonValue (myjSondate);
C. var mydate = meteor.fromjsonValue (myjSondate);
D. var mydate = json.parse (myjSondate);
A. .prima corsa
B. .Lastrun
C. .prima volta
D. .Isfirst
A. patternmatch (myvar, string);
B. test (myvar, string);
C. match (myvar, string);
D. controlla (myvar, string);
A. Ci saranno molti abbonamenti "getcomments" subito dopo l'aggiunta di un commento
B. Ci saranno molti abbonamenti "getcomments" subito dopo il caricamento della pagina
C. Ci saranno molti abbonamenti "getuser" subito dopo l'aggiunta di un commento
D. Ci saranno molti abbonamenti "getuser" subito dopo la pagina
A. Template.template_containing_acetexteditor.configuration = function () {return function (editor) {if (session.get ('text') == "qualcosa") // Qui voglio che sia reattivo {// fai qualcosa ogni volta 'text ' i cambiamenti } } }
B. Tracker.autorun (function () {if (session.get ('text') == "qualcosa") // Questo verrà eseguito ogni volta che le modifiche al testo session {// fai qualcosa ogni volta che cambiano il testo}}) ** *
C. Entrambi sopra
D. Nessuna delle precedenti
A. Dati sul filo attraverso il protocollo di dati distribuito (DDP)
B. Compensazione di latenza con mini database
C. Reattività completa dello stack con fiammata e tracker
D. Tutti i precedenti
A. Tracker.reactive ()
B. Template.autorun ()
C. Tracker.autorun ()
D. Template.execute ()
A. {{#if CurrentUser}} <botton ID = "invio-btn"> fai clic su me </botton> {{else}} <p id = "invio-text"> Accedi per inviare {{/if}} * **
B. Template.newpost.rendered = function () {if (meteor.user ()) {$ ('#sotto-btn'). Show (); $ ('#invio-text'). hide (); } else {$ ('#invio-btn'). hide (); $ ('#invio-text'). show (); }}
C. Template.newpost.rendered = function () {if (meteor.user ()) {$ ('#sotto-btn'). Show (); $ ('#invio-text'). hide (); }}
D. Tutti i precedenti
A. Session.set ('counter', 0); Template.simple.counter = function () {return session.get ('counter'); } Template.simple.events ({'Click Button': function () {session.set ('counter', session.get ('counter') + 1);}});
B. Template.set ('counter', 0); Template.simple.counter = function () {return session.get ('counter'); } Template.simple.events ({'Click Button': function () {Template.set ('Counter', Template.get ('Counter') + 1);}});
C. Template.get ('counter', 0); Template.simple.counter = function () {return session.set ('counter'); } Template.simple.events ({'Click Button': function () {session.set ('counter', session.get ('counter') + 1);}});
D. Tutti i precedenti
A. Ejson
B. JSON
C. Variabile
D. Tutti i precedenti
A. meteor crea myapp
B. APP METEOR MYAPP
C. Meteor -Crea myapp
D. Meteor -App MyApp
A. $ meteorutils.autorun ($ scope () {$ meteorsubscribe.subscribe ('apublication', $ ampope.getReactive ('parametro')) .then (function () {alert ("ti sei abbonato!");}); });
B. Meteor.publish ("apublication", function (parametro) {Acollection.find ({'Aproperty': 'Parameter'}) $ abbonamento.subscripe ('Apublication', $ APPE.PaPameter) .Then (function () {Alert ( "Ti sei iscritto!");});
C. Entrambi sopra
D. Nessuna delle precedenti
A. C'è un bug nel codice client.
B. Quando un nuovo utente ha aggiunto un commento, le informazioni sull'utente non sono state inviate al client.
C. La pubblicazione mostrata sopra non invia mai informazioni sull'utente al client.
D. La pubblicazione mostrata sopra è sbagliata
A. reattivo-var
B. reattivovar
C. Var reattivi
D. reattivo
A. Template.template_name.created = function () {}; Template.template_name.Rended = function () {};
B. Template.template_name.new = function () {}; Template.template_name.Rended = function () {};
C. Template.template_name.active = function () {}; Template.template_name.Rended = function () {};
D. Template.template_name.created = function () {}; Template.template_name.active = function () {};
A. Utilizzare SQL SINTAX nel lato client: sbarazzarsi delle limitazioni di minimo sul raggruppamento e sui sindacati. Utilizzare ALASQL sul client e normalizzare le raccolte di Mongo.
B. Utilizzare un connettore SQL: prova i connettori MySQL e PG di Numltel o connettore PG a flusso meteorico. Lo svantaggio è che rompono le distribuzioni su Meteor.
C. Usa Mongo come schiavo per il database relazionale, mantenendoli in sintonia. Mysql Shadow lo usa. Inoltre, potresti voler guardare Symmetric.ds per impostare la replica bidirezionale di Mongo con molti motori SQL.
D. Tutti i precedenti
A. Meteor.settings.facebook.token
B. Meteor.settings.public.token
C. Meteor.public.facebook.token
D. Meteor.settings.public.facebook.token
A. accesso
B. negare
C. permettere
D. consente
A. this.userid;
B. this.userid;
C. this.loggeduserid;
D. this.loggeduseid;
A. ripetere
B. ogni
C. per ciascuno
D. carta geografica
A. $ gruppo
B. $ out
C. $ Progetto
D. $ pluck
E. $ Unrod
A. MyCollection = new db.collection ("campioni")
B. MyCollection = New Collection ("campioni")
C. MyCollection = new Mongo.Collection ("campioni")
D. MyCollection = new MongoDB.Collection ("campioni")
A. if (meteor.isclient) {template.home.events ({"click .Increment": function () {var CounterDoc = Counter.Findone (); if (CounterDoc) Counter.Update ({_ Id: CounterDoc._id}, { $ inc: {clics: 1}}); else Counter.insert ({clics: 1});}}); Template.home.helpers ({clics: function () {var counterdoc = counter.findone (); return counterdoc? Counterdoc.Clicks: "0";}}); }
B. <Template name = "home"> {{clics}} <br/> <botton type = "pulsante" class = "increment"> increment </ball> </mmexplate>
C. Counter = new Mongo.Collection ('Counter'); Counter.attachSchema (new SimplesChema ({clics: {type: numero}, creatot: {type: data, denyUpdate: true, autovalue: function () {if (this.isinsert) restituisci nuova data; else if (this.isupSert) return {$ setonInsert: new Date}; else this.unset ();}}}));
D. Tutti i precedenti
A. Template.layout.helper ({foohelper: function () {return 'foo string';}});
B. Template.layout.helpers ({foohelper: function () {return 'foo string';}});
C. Template.layout ({foohelper: function helper () {return 'foo string';}});
D. Template.layout.helpers ({function foohelper () {return 'foo string';}});
A. myMethod: function () {console.log (this.userid); funzione innerFunction () {console.log (this.userid); } InnerFunction.bind (this); }
B. myMethod: function () {console.log (this.userid); funzione innerFunction () {console.log (this.userid); }; InnerFunction.Apply (this); }
C. myMethod: function () {var that = this; console.log (this.userid); funzione innerFunction () {console.log (that.userid); } innerFunction (); }
D. myMethod: function () {var userId = this.Userid; console.log (this.userid); funzione internerfunction (userid) {console.log (userid); InnerFunction (); }
E. Tutti i precedenti
A. Meteor.clientcall.methods ({'consoleLog': function (message) {console.log (message);},});
B. Deps.autorun (function () {meteor.clientcall.setClientid (meteor.userid ());});
C. Meteor.clientcall.apply (userid, "consolelog", ["Questo messaggio dovrebbe apparire nella console client"]);
D. Tutti i precedenti
A. Template.footemplate.helpers ({myhelper: function (myString) {output = myString;}});
B. Template.footemplate.helpers ({myhelper: function (parametri) {output = parameters.hash.mystring}});
C. Template.footemplate.helpers ({myhelper: function (parametri) {output = parameters.mystring}});
A. Router.route = {register: 'register'}
B. Router.route ('register');
C. Router.route ('/register');
D. Router.route ('/&? Register');
A. Meteor.function ('pack.add', testo);
B. Meteor.apply ('pack.add', testo);
C. Meteor.call ('pack.add', testo);
D. Tutti i precedenti
A. Post.update ('post_id', {set: {titolo: 'nuovo titolo di post!'}});
B. Post.update ('post_id', {$ set: {titolo: 'nuovo titolo di post!'}});
C. Post.update ('post_id', {update: {titolo: 'nuovo titolo di post!'}});
D. Post.update ('post_id', {$ set {titolo: 'nuovo titolo di post!'}});
A. var risposteByQuiz1 = risposte.find ({'quiz._id': 1}). fetch ();
B. var rispondi = risposte.find ({'quiz._id': {$ in: [1,2,3,4,5,6,7]}}).
C. _.Groupby (risposte, funzione (risposta) {return risposta.quiz._id;});
D. Tutti i precedenti
A. Meteor.publish ('post', posts.find ({autore: autore}));
B. Meteor.publish ('post', funzione (autore) {return posts.publish ({autore: autore});});
C. Meteor.publish ('post', funzione (autore) {return posts.find ({autore: autore});});
D. Meteor.find ('post', funzione (autore) {return posts.publish ({autore: autore});});
A. var selected = [{oggetto}, {oggetto}]; var selectedIds = tips.find (). fetch ();
B. var selectedIds = _.pluck (selezionato, _id); var articoli = tips.find ({_ id: {$ nin: selectedIds}});
C. var selected = [{oggetto}, {oggetto}]; var selectedids = tips.find ({_ id: {$ nin: selectedIds}});
D. Tutti i precedenti
A. Post = new Mongo.Collection ('post);
B. Post = new Mongo.Collection ('post);
C. Post = new Mongo.Collection ('post);
D. Post = new Mongo.Collections ('post);
A. Meteor Aggiungi Secure
B. Meteor Aggiungi password
C. Meteor Rimuovi insicuro
D. Meteor Aggiungi politica
A. Targets = new Meteor.Collection ("Targets", {Transform: function (doc) {doc.title = function () {if (false) {console.log ("true"); return 'le inizio';} else { console.log ("false"); return 'le début';} return doc}}});
B. Obiettivi = new meteor.collection ("target"); Targets.insert ({id: 0, title: function () {if (false) {console.log ("true"); return 'le inizio';} else {console.log ("false"); return le le début ';}}, testo:' lorem ipsum dolor. ',}); `
C. Templates.content.target = function () {var correnteposition = meteor.user (). Profile.position; restituire targets.findone ({id: parseint (currentPosition)}); };
D. Tutti i precedenti
A. Template.example.events ({'Click #upDateTHIS': function (e, t) {var newValue = t. $ ('. NewValue'). Val (); // prendendo valore dalla raccolta di input casuali.Update ({_ ID : this._id}, {$ set: {value: newValue}}, function (errore, risultato) {if (errore) {console.log (errore.reason)} else {console.log ("Nice update")} })}})
B. Template.example.event ({'Click #UpDateTHIS': function (e, t) {var newValue = t. $ ('. NewValue'). Val (); // prendendo valore dalla raccolta di input casuali.Update ({_ ID : this._id}, {$ set: {value: newValue}}, function (errore, risultato) {if (errore) {console.log (errore.reason)} else {console.log ("Nice update")} })}})
C. Template.example.events ({'dbclick #updatethis': function (e, t) {var newValue = t. $ ('. NewValue'). Val (); // prendendo valore dalla raccolta di input casuali.Update ({_ id : this._id}, {$ set: {value: newValue}}, function (errore, risultato) {if (errore) {console.log (errore.reason)} else {console.log ("Nice update")} })}})
D. Tutti i precedenti
A. Cartella in /server Aggiungi un file .js contenente: meteor.publish ('post', function () {return posts.find ();}); Cartella in /client Aggiungi un file .js contenente: meteor.subscribe ('post');
B. Cartella in /client Aggiungi un file .js contenente: meteor.publish ('post', function () {return posts.find ();}); Cartella in /server Aggiungi un file .js contenente: meteor.subscribe ('post');
C. Cartella in /server Aggiungi un file .js contenente: meteor.subscribe ('post', function () {return posts.find ();}); Cartella in /client Aggiungi un file .js contenente: meteor.posts ('post');
D. Cartella in /server Aggiungi un file .js contenente: meteor.publish ('post', function () {return posts.find ();}); Cartella in /client Aggiungi un file .js contenente: meteor.subscribe ('post');
A. Meteor.publish ('post', function () {return posts.find ({}, {fields: {title: true}});});
B. Meteor.publish ('post', function () {return posts.find ({}, {fields: {title: 1}});});
C. Meteor.publish ('post', function () {return posts.find ({}, {field: {title: 1}});});
D. Meteor.publish ('post', function () {return posts.find ({}, fields: {title: 1});});
A. {"_id": "W78123BYUXZEDW"}
B. {"id": "W78123BYUXZEDW"}
C. {"Id": "W78123BYUXZEDW"}
D. {"Key": "W78123BYUXZEDW"}
A. MyCollection.Find ();
B. MyCollection.fetch ();
C. MyCollection.search ();
D. MyCollection.get ();
A. È impossibile rendere un singolo percorso o parte di esso.
B. È difficile inviare un sottoinsieme dell'albero al cliente.
C. Non c'è problema con questo modello.
D. DDP non ha supporto per questo modello.
A. Template.example.helpers ({postslist:) {return posts.find ({}, {ording: {timePublished: 1}});}});
B. Template.example.helpers ({postslist:) {return posts.find ({}, {ordin: {timePublished: 0}});}});
C. Template.example.helpers ({postslist:) {return posts.find ({}, {sort: {timepublished: 'desc'}});}});
D. Template.example.helpers ({postslist:) {return posts.find ({}, {ording: {timePublished: -1}});}});
A. CurrentPath ()
B. getQueryParam ()
C. getCurreRnouteParam ()
D. getRouteName ()
A. 1
B. 2
C. 3
D. Infinito
A. forme di accesso
B. Forme di conti
C. Contagesti-Ui-Unstyled
D. Account-ui
A. Template.myTemplate.events ({'Click #MyButton': function () {..},});
B. Template.mytemplate.events ({'Click $ myButton': function () {..},});
C. Template.mytemplate.events ({'click .myButton': function () {..},});
D. Template.myTemplate.events ({'Click myButton': function () {..},});
A. Manubrios.registerhelper ('ifrouteis', function (routename) {return meteor.router.page () === Routename;});
B. Manubrios.registerhelper ('ifrouteis', function (routename, options) {if (meteor.router.page () === routename) {return options.fn (this);} return options.inverse (this);});
C. Manubrios.registerhelper.helper ('ifrouteis', function (routename, options) {if (meteor.router.page () === routename) {return options.fn (this);} return option );
D. Tutti i precedenti
A. var loginrun; Template.bar.rendered = function () {logInrun = deps.autorun (function () {if (meteor.user ()) {// roba da eseguire quando è accessibile in}}); } Template.Bar.Destroyed = function () {logInrun.stop (); }
B. var loginrun; Templates.bar.rendered = function () {logInrun = deps.autorun (function () {if (meteor.user ()) {// roba da eseguire quando è loggato in}}} Template.Bar.Destroyed = function () { loginrun.stop ();}
C. var loginrun; logInrun = deps.autorun (function () {if (meteor.user ()) {// roba da eseguire quando è loggato in}}); Template.bar.destroyed = function () {loginrun.stop (); }
D. Tutti i precedenti
A. Console e tipo semplici e aperti: meteor.release (), puoi anche usarlo nel codice.
B. Console e tipo semplici e aperti: meteor.update (), puoi anche usarlo nel codice.
C. Console e tipo semplici e aperti: meteor.soon (), puoi anche usarlo nel codice.
D. Tutti i precedenti
A. Meteor.users.add (userid, {$ set: {ruoli: {admin: true},}});
B. Meteor.users.create (userid, {$ set: {ruoli: {admin: true},}});
C. Meteor.users.update (userid, {$ set: {ruoli: {admin: true},}});
D. Meteor.users.permission (userid, {$ set: {ruoli: {admin: true},}});
A. Accounts.ui.config ({nome utente: true, email: false});
B. Accounts.ui.config ({passwordsignupfields: 'username_only',});
C. Accounts.ui.config ({usernameonly: true});
D. Accounts.ui.config ({email: false});
A. Accounts.validateLoginattempt
B. Accounts.validatelogin
C. Accounts.loginattempt
D. Accounts.validateLoginattempts
A. Ui ottimista
B. Ottimizza la pagina
C. modello di rendering
D. Nessuna delle precedenti
A. Meteor.router.add ({'/home/strumenti': function () {session.set ("hometemplate", "strumenti"); return 'home';}, '/home/admin': function () {session .set ("hometemplate", "amministratore"); return 'home';}});
B. Template.home.hometemplateTools = function () {return session.equal ("hometemplate", "strumenti"); }; Template.home.hometemplateadmin = function () {return session.equal ("hometemplate", "admin"); };
C. <Template name = "home"> {{#if isAdmin}} <h1> studente </h1> {{/if}} <div id = "Inner_home"> {{#if HomeTempLateTools}} {{> HomeTools}}}}}}}}}}}}}}}}}}}}} {{/if}} {{#if hometemplateadmin}} {{> homeadmin}} {{/if}} </template>
D. Tutti i precedenti
A. Chiuso
B. finito
C. Partire
D. distrutto
A. {{##if}} .. {{/if}} {{#until}} .. {{/fino a}} {{#with} .. {{/con}} {{#each}} .. { {/ogni}}
B. {{##if}} .. {{/if}} {{#unless}} .. {{/a meno che}} {{#with} .. {{/con}} {{#do}} .. { {/Mentre}}
C. {{##if}} .. {{/if}} {{#unless}} .. {{/a meno che}} {{#with} .. {{/con}} {{#each}} .. { {/ogni}}
A. {{#if layout.rendersidebar}} {{> sidebaradminnav}} {{/if}} {{> remher}
B. {{#if AdminRoute}} {{> sidebaradminnav}} {{> yeld}} {{else}} {{> yeld}} {{/if}
C. {{#if userroute}} {{> sidebaradminnav}} {{> yeld}} {{else}} {{> yeld}} {{/if}
D. Tutti i precedenti
A. OnRender
B. creato
C. reso
D. ondestroyd
A. Template.Hellowlerld.helpers ({txt: function () {return template.instance (). MyasyncValue.get ();}}); Template.Helloworld.Add = function () {var self = this; self.myasyncValue = new ReactiveVar ("in attesa di risposta dal server ..."); Meteor.call ('getAsyncValue', function (err, asyncValue) {if (err) console.log (err); else self.myasyncValue.set (asyncValue);}); }
B. Template.Hellowlerld.helpers ({txt: function () {return template.instance (). MyasyncValue.get ();}}); Template.Helloworld.Created = function () {var self = this; self.myasyncValue = new ReactiveVar ("in attesa di risposta dal server ..."); Meteor.call ('getAsyncValue', function (err, asyncValue) {if (err) console.log (err); else self.myasyncValue.set (asyncValue);}); }
C. Entrambi sopra
D. Nessuna delle precedenti
A. Template.registerGlobalHelper () {... qualche codice ...});
B. Template.registerhelper () {... qualche codice ...});
C. Template.globalHelper () {... qualche codice ...});
D. Nessuna delle precedenti
A. Session.define ('variabile_name', 5);
B. Session.create ('variabile_name', 5);
C. Session.new ('variabile_name', 5);
D. Session.set ('variabile_name', 5);
A. Router.map (function () {this.router ('home', {route: '/' template: 'home'});});
B. Router.mapper (function () {this.router ('home', {path: '/', template: 'home'});});
C. Router.map (function () {this.route ('home', {path: '/', template: 'home'});});
A. DefaultNotfound
B. istemplate
C. non trovato
D. NOTFOUNDTEMPLATE