-
<div ng-show="false"></div> -
<div ng-app="app"></div> -
<div ng-element="my-directive"></div> - [✅]
<my-directive ></my-directive>
- Disables Content ecurity Policy support
- It is not a valid directive
- [✅] Enables Content ecurity Policy support
- Detect when an element is clicked
- A filter
- [✅] A service
- A directive
- A controller
- [✅] ng-view
- ng-show
- ng-open
- ng-hide
- Data Interoperability
- ervice Interoperability
- [✅] Internationalization
- Directive Interoperability
6 You are implementing a third-party notification library which is implemented as a global object with a notify method. What is the best way to use this library with Angular?
- Use a custom resolver.
- [✅] Wrap it in a service.
- Make no modification, use it as is.
- Wrap it in a custom directive.
- ng-submitted
- ng-dirty
- ng-pristine
- [✅] ng-unsubmitted
- $route
- [✅] $routeProvider
- $config
- The angular global object
- [✅] provider
- factory
- variable
- value
- Create a custom provider
- Use the controller property of the link function
- [✅] Use a service
- Use a filter
11 You need to support Internet Explorer 11, Google Chrome, Microsoft Edge, Mozilla Firefox, and Apple afari browsers with your new app. How should you apply styles to your elements in a manner that is supported in all browsers
- [✅] Use ng-style on your elements
- Use style="{{ someCss }}" on your elements
- Use ng-overridetyles() in your code
- Use ng-applytyles() in your code
- ngRoute
- ng
- ngAnimate
- [✅] nganitize
- [✅] Encapsulating functionality into custom elements
- Managing data binding
- Manipulating pre-built AngularJ functions
- Creating functions on the server-side
-
. filter(function('duration') { // implementation }); -
. filter('durationFilter', function() { // implementation }); -
. filter('duration-filter', function() { // implementation }); - [✅]
. filter('duration', function() { // implementation });
- Service
- Filter
- [✅] Controller
- Template
$http.get('/index.html')
- [✅] $http({method: 'GET', url: '/index.html'})
- $http('/index.html', ‘get')
- $http('get', '/index.html')
- $http('GET', {url: '/index.html'})
- The directive will only be triggered by an attribute.
- The directive will return an error if no model data is present.
- The directive will only work in external templates.
- [✅] The directive will only be triggered by an element.
- [✅] $routeParams
- The global angular object
- $routeParameters
- $locationParameters