These are chat archives for angular/angular.js

May 2015
Darrin Dickey
May 01 2015 16:03
Is it possible to pass a value from one directive to another?
May 01 2015 19:24
I have a beginner question. If someone logs in I want to show a logout button (or the navigation in general). I figured I’d just change an app variable and then do an ng-show={{loggedIn}} and so I set app.value(‘loggedIn’,true); but it’s not working. What’s the right way to do this? Do have to make a MenuCtrl and then set something in that controller from LoginCtrl? Or do I need to make an AuthenticatedAreaCtrl to wrap around everything? I’m getting kind of lost.