code for your controller.</li>
<li><code>$onChanges(changesObj)</code> - Called whenever one-way (<code>&lt;</code>) or interpolation (<code>@</code>) bindings are updated. The
<code>changesObj</code> is a hash whose keys are the names of the bound properties that have changed, and the values are an
object of the form <code>{ currentValue, previousValue, isFirstChange() }</code>. Use this hook to trigger updates within a
component such as cloning the bound value to prevent accidental mutation of the outer v