I've been trying to understand the Lightning component event model, to see what would be the best way to do what I need to do.  I have a component that contains a component, like this:  &lt;!-- parent component --&gt; &lt;aura:component&gt;     &lt;c:childComponent/&gt; &lt;/aura:component&gt;   The child component contains a data table that is populated via an init().  When I do something in the parent component that changes the data displayed in the child component, what is the best way to tell the child component to refresh the data displayed by the data table?
I have this below code where i am trying to first search an account name and on hit button it displays the result set.  On the button click i am also loading an child component which is displaying the id of the record.  I need the child component should get displayed once i click on the record.  How can i achieve this -   Parent Component -   &lt;aura:component controller="SimpleAccountController"&gt;     &lt;aura:attribute name="account" type="account[]"/&gt;     &lt;ui:outputText aura:id="outName" value="" class="text"/&gt;     &lt;ui:inputText aura:id="name" label="Enter Name:" placeholder="Your Name" /&gt;     &lt;ui:button aura:id="button" buttonTitle="Click to see what you put into the field" class="button" label="Click me" press="{!c.getInput}"/&gt;     &lt;aura:iteration var="acc" items="{!v.account}"&gt;             &lt;a onclick="{!c.accountselected}" data-recId="{!acc.Id}"&gt;         &lt;p&gt;{!acc.Name} : {!acc.Type} : {!acc.Industry} : {!acc.Rating}&lt;/p&gt;             &lt;/a&gt;         &lt;c:HelloWorkdChildCmp selectedaccount="{!acc.Id}" /&gt;     &lt;/aura:iteration&gt; &lt;/aura:component&gt;   COntroller -   ({     getInput : function(cmp, evt) {         var myName = cmp.find("name").get("v.value");         var myText = cmp.find("outName");         var greet = "Hi, " + myName;         myText.set("v.value", greet);         var action = cmp.get("c.seaAcc");         action.setParams({ "s" : myName });         action.setCallback(this, function(response) {             var state = response.getState();             if (state === "SUCCESS") {                 cmp.set("v.account", response.getReturnValue());                 //alert("From server: " + response.getReturnValue());             }         });         $A.enqueueAction(action);     },      accountselected : function(cmp, evt) {        console.log(evt.currentTarget.getAttribute("data-recId")) ;     }  })   Child component -   &lt;aura:component &gt;     &lt;aura:attribute name="selectedaccount" type="String"/&gt;     &lt;div&gt;Id: {!v.selectedaccount}&lt;/div&gt; &lt;/aura:component&gt;
When do we still need the table and figure environments when we don't want the enclosed objects to float? The LaTeX Wikibook :     Please understand: you do not have to use floating tables. It only   looks more professional. If you want to place your tables where they   lie in your source code, do not use table at all! This is a very   common misunderstanding among newcomers.   LaTeX works with an intricate , but I often prefer immediate placement with the H placement specifier (enabled by the float package).  My understanding is that captions and table/figure numbering require the table/figure environments. Is this really so, or are there ways around that? What other reasons are there for using table/figure if we know that we don't want a particular object to float? Kworker, what is it and why is it hogging so much CPU? Is it possible to install multiple instances of the same delphi service application? Adding related resources or hyperlinks in edits So, I've been rejecting the addition of resources/hyperlinks to posts simply because I had no idea that this was an acceptable practice.  Today, I was browsing through the edits page and saw:     Some common reasons to edit are:         to fix grammatical or spelling mistakes   to clarify the meaning of a post without changing it   to correct minor mistakes or add addendums / updates as the post ages   to add related resources or hyperlinks      Why is this an acceptable practice?  I can see adding links to official documentation, but the quality of outside resources is (potentially) subjective.  I see the merit in adding resources, but it seems to me that these additional resources should be placed in comments, not inserted into the post via an edit.  Anyone have thoughts on this? How to prevent LaTeX from line-breaking a phrase? How can I prevent LaTeX from putting line-breaks into a phrase?  I could replace dashes with  and spaces with non-breaking spaces, but I'm looking for a more general solution in case I need other characters in such phrases. SVN repository backup strategies I'm new to SVN and I'd like to know what methods are available for backing up repositories in a Windows environment? Rearranging display order of attribute table fields using QGIS? Using QGIS 2.10.1, I open an attribute table.  How do I rearrange the field display order?  For example, a table's default display order (from left to right) is State, County, City.  But I would like to see them displayed as City, State, County.  I'm not interested in rearranging the table's internal structure, rather just the table's display. How do I calculate rotation caused by bounce friction? Can I install Ubuntu inside Windows? Ubuntu 12.04 won't come with the Windows Installer (Wubi) pre-added. But is there any way to install 12.04 using Wubi? I have a basic doubt about the associativity of the cartesian product. Well, first wikipedia says that the cartesian product isn't associative, and there's a good argument for it: if $x\in E$, $y\in F$ and $z \in G$ the identity $((x,y), z)=(x,(y,z))$ would imply that $(x,y) =x$ and $(y,z) = z$ so that $((x,y),z)=(x,y,z)$ would mean nothing.  That's fine, I like this argument. However, in his book Calculus on Manifolds, Spivak says that the cartesian product is associative. He says: if $A \subset \mathbb{R}^m$, $B\subset \mathbb{R}^n$ and $C \subset \mathbb{R}^p$ then $(A\times B)\times C = A \times (B \times C)$, and both of these are denoted simply by $A \times B \times C$.  Well, this confuses me because Spivak is always very rigorous, so that he wouldn't state something that's not true in such way. Is Spivak or Wikipedia right ? Or Spivak's statement only works for subsets of euclidean spaces ?  Thanks in advance and sorry if this question is too basic. If $\forall x \in R, x^2-x \in Z(G)$, than $R$ is commutative Let $R$ be a ring such that for every $x\in R$ we have $x^2-x \in Z(G)$. Show that $R$ is a commutative ring.    My thoughts  What should I do? I could show that every $y \in R$ could be written in the shape $x^2-x$ but I don't know if that is true. We know that  $y \cdot(x^2-x) \ = \ (x^2-x)\cdot y$ for any $x,y \in R$, but that doesn't mean that $xy = yx$. Please give me a hint In a multiple regression, the regression coefficient of the two subsamples is opposite to that of the full sample. Both coefficients are significant. The sum of the number of obs in the two subsamples is equal to that of the full sample. Is this normal? What are the possible causes? Thanks. Unparsed HTML shows on search result page When you search on any of the SE network sites, with a tag (so that a description is shown); it shows the tag info content box, with the highlight-search-term span elements.  For eg. I searched ; ; and the results are as shown:                  Notice the &lt;span class='search-highlight'&gt; boxes around searched tag terms. Does David not understand that humans can't live that long? In the movie AI: Artificial Intelligence, they say David's mom is dead because 2000 years have passed. Does David not understand that humans can't live that long? I heard about nautilus-gksu and would like to install it. Unfortunately, when I try, I get this:  glemi@XPS:~$ sudo apt-get install nautilus-gksu Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-gksu   How and where can I get this package? martingale and stochastic Integral Fantasy book with shape shifting dragon warriors Set in a fantasy world with shape shifting Dragon kings and their warriors. They terrorize the humans, and kill those with magic.   The protagonist is the great-grandson of a powerful warlock. He finds out that he has magic, and fights with it to save his new friends, the Griffin, Blackhorse (I think that's his name), some creepy necromancer who is immortal, and Gwen (fellow sorceress), along with the kingdom that the Griffin rules in.   They fight the protagonist's father, the leader of the Dragon kings, the king's Duke, and the creepy sorcerer, who has a curse (when he dies, he changes side from good to bad, or bad to good). I have no clue what this is called, but I want to find out, since I'm out of things to read. How to check if a shell is login/interactive/batch I think I understand the differences between an interactive, a login and a batch shell. See the following links for more help:    (from the sister site: )  (from A User's Guide to the Z-Shell)   My question is, how can I test with a command/condition if I am on an interactive, a login or a batch shell?   I am looking for a command or condition (that returns true or false) and that I could also place on an if statement. For example:  if [[ condition ]]    echo "This is a login shell" fi Rolling back a completely changed question was originally asked August 9, and received answers. A month later, the OP  the question, invalidating the existing answers. I rolled it back, and left a comment to say that a new question should be opened, but the OP changed it back saying "There is no rule about it, so you can't edit my post."  There is also a bounty on this question, making things more interesting.  What are the guidelines on completely changing a question or rolling back changed questions? Was I out-of-line rolling back the question?  I have no desire to get into an edit war, so I'm not going to touch the question again. If a moderator wants to get involved, great. HTTP vs HTTPS performance Are there any major differences in performance between http and https?  I seem to recall reading that HTTPS can be a fifth as fast as HTTP.  Is this valid with the current generation webservers/browsers?  If so, are there any whitepapers to support it?