AngularJS 1.x Routers and Custom Directives Q&A
AngularJS 1.x Routers and Custom Directives Q&A
Which is the correct syntax format for constructing a route and binding a
route parameter?
<a ng-href=”#/detail/{{food.id}}”>Click for more.......</a>
Which function best describes routing? Loads templates into the ng-view element
Complete the code to set up the locale controller to use the local service
function LocaleController($scope,$locale) { $scope.myDate=Date.Now();
$scope.formattedDate=?.DATETIME_FORMATS.fullDate; }
$locale
what is the purpose of the $location service? It enables changing the path of the
application in order to perform navigation
With _, views and routes are tied to the application url ng-route
which of the following variables can be injected into a function once you
have included ui-router in the list of dependencies for your module?
$urlrootprovider $stateprovider
which feature best describes the $compile service? Creates new HTML….
A ___ is a javaScript factory function that holds a set of instructions for the
HTML compiler for defining a specified behavior of a DOM element.
Directive
Final:
7. which of the following variables can be injected into a function once you
have included ui-router in the list of dependencies for your module?
$urlrootprovider $stateprovider
18. Complete the code to set up the locale controller to use the local
service
function LocaleController($scope,$locale)
{
$scope.myDate=Date.Now();
$scope.formattedDate=?.DATETIME_FORMATS.fullDate;
}
$locale