Ok, i think i'm confused(i'm using angular just in 2 days...), i know that 
i need to manually bootstrap angular and i did that, so one question, using 
requirejs can i use directives like ng-controller in my html element?  And 
another question, angular routers work with express? Or they are just used 
to single web app and work with expresses through ajax? Because i want to 
use router, but the client have to connect with server directly and refresh 
the page...

Em quarta-feira, 8 de janeiro de 2014 13h45min30s UTC-3, Samuel Ytterbrink 
escreveu:
>
> I think you confuse your self with 2 different things.
>
> The only thing that changes when using Requirejs and/or any other AMD 
> module-system is that you need to manualy bootstrap angular.
>
> You need to make sure that all the angular code are loaded before this 
> (you can use Requirejs domready and its dependency system). Then you just 
> run angular.bootstrap(<element>, "<module_name>") and your good to go. This 
> is instead of using the ng-app directive on the element you use as element 
> root for the application.
>
> If you cant use directives after this in your application then its not 
> that you use Requirejs that is the problem. And for us to be able to help 
> you in that case you need to give us more info about your application.
>
> PS. your backend have nothing to do with this problem.
>
>
> 2014/1/8 Rodrigo F. <[email protected] <javascript:>>
>
>> Samuel Ytterbrink,
>>
>>  I've seen this tutorial before and they just bind the angular 
>> controller with html through angular route.
>>  
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "AngularJS" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/O6MtAWnPJuQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Samuel Ytterbrink
>  

-- 
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/groups/opt_out.

Reply via email to