Fill the blank and implement two-wat data binding in Angular 1.x:
{{ user.name }} <input type="text" ="user.name" />
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>
Mark valid 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
Mark 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
Mark valid properties of the component definition object:
restrict
bindings
scope
require
Mark valid properties of the directive definition object:
render
« 1 (current) 2 3 4 5 »