-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.html
More file actions
28 lines (23 loc) · 851 Bytes
/
testing.html
File metadata and controls
28 lines (23 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head></head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.2/angular.min.js"></script>
<script>
var app=angular.module('myApp',[]);
app.directive('thumbCntrl',function(){
return{
restrict:'E',
templateUrl:'partial/thumbnail.html',
replace:true, //If you don't write replace true, template is added //to panel-cntrl
transclude:true,//allows you to add text
link:function(scope,element,attrs)
{
//jquery type
console.log(attrs.mytitle);
scope.addingATitle=attrs.mytitle;
}
}
})
</script>
</body>
</html>