Fill the blank and implement two-wat data binding in Angular 1.x:
{{ user.name }} <input type="text" ="user.name" />
No tests found
Fill the blank and use Angular 1.x directive that allows to include the rendered template of the current route into the main layout:
<div ></div>
Select correct methods that will be called in the life cycle of the component:
$onInit()
$onChanged()
$onChanges()
$onDestroy()
$onRendered()
$postLink()
ngOnInit()
When is $onChanges called?
$onChanges
on each turn of the digest cycle
when its containing scope is destroyed
whenever one-way bindings are updated
after controller's element and its children have been linked
Does component definition object have link property?
link
yes
no
Select code that will be matched by the given component:
myApp.component("myComponent", {});
<div class="my-component"></div>
<div my-component></div>
<my-component></my-component>
<myComponent></myComponent>
Component's scope is not isolate by default. True or false?
true
false
What is the default value for controllerAs property in the component definition object?
controllerAs
controller
ctrl
$ctrl
null
Select correct properties of the component definition object:
restrict
bindings
scope
require
Select correct properties of the directive definition object:
render
«12345»