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

上部メニューのactiveを自動で切り替える #11

Closed
sinmetal opened this issue Jun 8, 2013 · 0 comments
Closed

上部メニューのactiveを自動で切り替える #11

sinmetal opened this issue Jun 8, 2013 · 0 comments

Comments

@sinmetal
Copy link
Owner

sinmetal commented Jun 8, 2013

URLを元に上部メニューのactiveを切り替える。

sinmetal added a commit that referenced this issue Jun 13, 2013
今気付いたけど、このコードはaタグのclassに対してのdirectiveなのだな。
$scope.$watchでlocationを監視してくれるのかと思ったけど、そうではないのか。
http://stackoverflow.com/questions/12669674/how-to-update-angularjs-directive-when-url-is-changed
sinmetal added a commit that referenced this issue Jun 15, 2013
でも、最初からある単純にdirectiveを指定しただけだと、最初からあるDOMでしか適用できないようだ。
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

1 participant