Hi Franceso, You are using an isolated scope. That means that your directive create a new independent scope, and it does NOT have any parents. This independant scope is the only one available to its HTML. So, in the template of the directive, you don't have your vm.name (wich is on a now unavailable scope). if you want something added to the isolated scope, the only (correct) way is by passing it in via an attribute as you did with the title and subtitle. Like `<my-directive title='vm.title'>.
As you are transcluding, the stuff you put inside, will get a new child scope, so the stuff is available there. And yes you are able to do your point 1 to 5, and virtually every combination of those. (I would separate 5 into it's own (outer)directive though) Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
