-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nav bar #6
Nav bar #6
Conversation
static targets = [ "arrow", "circle"] | ||
static classes = [ "rotate", "hide"] | ||
|
||
transform_add() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use camelCase
for js variables and functions
hide() { | ||
this.circleTarget.classList.add(this.hideClass) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this to a different controller. One can be the "drop down controller" and other can be the "notification controller"
header created