Hi Juan!

Please follow the forum's guidelines, create a *plunkr* or a *jsfiddle* 
with your code instead of showing it here!
I can't see the image you provided.

I've never used *component* before but, looking at the docs, it seems that 
with need to pass an object instead of a function to the second argument 
when calling the *component* function.
Instead of *scope*, use *bindings*. (I'm not sure if this is a mistake or 
not, I'm just following the docs 
<https://docs.angularjs.org/api/ng/provider/$compileProvider#component>)
In your directive definition object you don't need the property *url* 
there, that property must be placed in the *login* state definition object.

Why are you returning something in your controller? I'm not used to return 
anything when declaring controllers.
The property *vm.title* that you declared in your template is not being 
created in your controller, on the other hand you're declaring a property 
called *message*.

I hope this helps you!

Kind regards,
*Luís Loureiro*

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to