AngularJS 1.x Routers and Custom Directives
AngularJS 1.x Routers and Custom Directives
No
1
2
3
4
5
6
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
33
34
35
36
37
38
39
40
41
42
The............... service is not able to function properly if the current URL is outside the URL given as the base h
The directive..................that marks where the router should display a view.
Which function is used to set up a default route?
With _____, views and routes are tied to the application url
Which function best describes routing?
Which is the correct syntax format for constructing a route and binding a route parameter?
Complete the code to set up the locale controller to use the local service function
LocaleController(scope,scope,locale) { scope.myDate=Date.Now();
scope.myDate=Date.Now();scope.formattedDate=?.DATETIME_FORMATS.fullDate; }
For using ui-sref, what is required
In UI router, _________ can be used to provide your controller with content or data that is custom to the state
$location
ng outlet
Otherwise()
ngRoute
Loads templates into the ng-view element
It enables changing the path of the application in
order to perform navigation
No. It is not. One need to download and include the
router script file exclusively
href="#/detail/{{food.id}}"
ui-router, ngRoute
ngrepeat
Yes. Animations are possible with custom directives
using $animate service
Directive
The template property is used for very small
templates
resolve
Directive
Create a directive that wraps other elements
exactly one root scope but may have several child
scopes
ng-repeat
Both CSS and Javascript
ng-animate
0
ngLink RouteConfig
Prevents currnt
remains fixed utilizes to setup paths URL
href="#/detail/
{food.id}" href='#/ http
$compile
URL property for large Angular JS only
markups very large templates support external
standard behaviour to
new elements
less messy
param inject
$anchorScroll