Ok I get that perhaps my design is wrong. I think Im having trouble chaning from angular 1 to 2. so here is how my app was set up so in 1 i had a controller with functions on it like DoSave() which would take a model attached to the root scope and save it back to the server there are several directives on the page those directives would act pn the model in the rootscope. I think that the way to do this in angular 2 would be too have a root component with the functions on it and sub-components under that. However I dont want to replace the existing html on the page and there is no way to create a root component without a template. And maybe im doing it wrong but importing a directive to be the root container doesnt seem to work. Am i going about this wrong? On Wednesday, November 11, 2015 at 4:32:49 PM UTC-7, Eric Martinez wrote: > > Josh, > > you are looking for Directives > <https://angular.io/docs/ts/latest/api/core/DirectiveMetadata-class.html> >
-- 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.
