Using restrict: ‘E’ vs restrict: ‘A’
1. restrict: ‘E’ (Element Directive) Example: Creating a <custom-card> Directive Step 1: Define Directive in JavaScript var app = angular.module(“myApp”, []);app.directive(“customCard”, function () { return { restrict: “E”, // Used….