Science, asked by felfela5151, 1 year ago

How to define multiple restrict options on a directive in AngularJS?

Answers

Answered by rjgolu
1
i was reading a write up on directive from this url https://docs.angularjs.org/guide/directive The restrict option is typically set to: 'A' - only ...
Answered by Ayushkaurav
0
The restrict option is typically set to: 'A' - only matches attribute name 'E' - only matches element name 'C' - only matches class name 'M' - only matches comment <div ng-controller="Controller"> <my-customer></my-customer> </div> angular.module('docsRestrictDirective', []) .controller('Controller', ['$scope', function($scope) { $scope.customer = { name: 'Naomi', address: '1600 Amphitheatre' }; }]) .directive('myCustomer', function() { return { restrict: 'E', templateUrl: 'my-customer.html' }; });
hope you are satisfied dear....:)
plz mark ad brainiest.....:)
Similar questions