Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homework for Exploring Directives #5

Open
al-the-x opened this issue Jul 9, 2014 · 4 comments
Open

Homework for Exploring Directives #5

al-the-x opened this issue Jul 9, 2014 · 4 comments

Comments

@al-the-x
Copy link
Collaborator

al-the-x commented Jul 9, 2014

This is a good time to start committing code into the repository. I've added a simple index.html file that includes the Angular JS library and contains an empty <script> tag for our application code.

  • Create a branch for this assignment: homework--same-element-directives
  • Create a pair of Directives that both apply to the same element... Whatever element you choose. Be very verbose in your Directive definition, explicitly defining all the options.
  • Write named callback functions for every option that supports it: controller, compile, pre-link, post-link, and transclude. You can use my plunker from Why are two ng-view Directives registered? #2 as an example.
  • Each callback should just log the name of the callback and the arguments passed. Bonus points if you can document what the return value of each callback is expected to be and what that affects.
@al-the-x
Copy link
Collaborator Author

al-the-x commented Jul 9, 2014

Actually, you need to put something in the repo before I can even fork / edit it. ;)

@pomerantsev
Copy link
Owner

You can now push to the repo - I've granted you full access.
Anyway, I'm working on the homework at the moment, so I don't think I need you to push anything right now.

@pomerantsev
Copy link
Owner

Done. Now we have something to discuss.

@al-the-x
Copy link
Collaborator Author

Added #6 as a somewhat unrelated follow-up... We'll dig in more next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants