From 552ae91250175137f9e2b742883c7973c463dd48 Mon Sep 17 00:00:00 2001 From: Zafarali Ahmed Date: Mon, 16 Jun 2014 22:19:40 -0400 Subject: [PATCH] adds C directives --- 03-1-directives.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/03-1-directives.html b/03-1-directives.html index 3a60e2b..2b94e95 100644 --- a/03-1-directives.html +++ b/03-1-directives.html @@ -26,12 +26,22 @@ } } }); + + app.directive("calculus", function(){ + return { + restrict:"C",//C for class + link:function(){ + alert("lets do some integration!") + } + } + });
-
+ +