Emanuel
Joined
10 Experience
0 Lessons Completed
0 Questions Solved
Activity
Posted in In-App Navbar Notifications Discussion
Hi Chris!
I am trying to implement the notification feature and it works perfectly up to the point where I try to fetch the @notifications div in notifications.js.coffee file.
class Notifications
constructor: ->
@notifications = $("[data-behavior='notifications']")
@setup()
setup: ->
console.log(@notifications)
jQuery ->
new Notifications
I know that the file loads because if I put an alert message it executes on page load. But when I do the code above it dont get anything consoled..