Versions des environnements
Network:
Windows 2008 Server
>>>Thanks for responding, but I think I will take Rick's advice and start over small. angular and web api with empty mvc project.
>>
>>Good idea. When using angular I hardly use MVC at all - just static HTML pages and WebApi for data (doesn't seem to be much point in having MVC logic on the server when angular's doing MVVM on the client anyway.....)
>
>PMFJI, could you give a very brief explanation of what do you mean by "WebApi for data"? How does it work? (Whenever you have time, if you do) TIA.
Basically just an async http call from angular (I tend to use the hi-level $resource methods) to a WebApi controller on the server that returns JSON objects.
On completion angular automatically slots the results into the relevant view.
If you google 'angular+webapi' you'll find lots of examples....
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement