Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the various injectables in the link, controller and compile functions? [closed]

What objects can be passed as arguments to the link, controller and compile functions in AngularJS?

like image 710
user1624400 Avatar asked Jan 24 '13 19:01

user1624400


1 Answers

All the information your looking for is available on AngularJS documentation website.

function compile(tElement, tAttrs, transclude) { ... }

function link(scope, iElement, iAttrs, controller) { ... }

function controller(scope, element, attribute, transcludeFn)

Look under Writing Directive Long Versions

http://docs.angularjs.org/guide/directive

like image 146
Jigar Patel Avatar answered Nov 16 '22 21:11

Jigar Patel