Dynamic Templates for plugin-outlet UIs

As of our latest stable release, outlets can only receive access to the parameters passed into them, so you can’t access controller methods.

Instead you should use a connector class for your outlet. Additionally, you could just create a new ember component and use it in your connector – it should have this.currentUser to know about the current person who is logged in.

Taking it a step further, just in your template you should be able to say {{currentUser.username}} and find out things about your user in there too.

3 Likes