Hello Jake,

As per my experience, if you are going to use ng-route, you need a server 
like wamp,xamp, tomcat , anyone... 
for better  result i will suggest to use visual studio will runs asp server 
and will resolve your errors.

Hope it will help you 





On Monday, January 4, 2016 at 8:16:11 AM UTC+5:30, Jake K. wrote:
>
>
> Hello,
>
> I was trying to create a small application with angular which needs to 
> include 3 different templates.
>
> However, when I use the ng-router I get an error related to CORS. Then I 
> try using the ng-include directive and again I get the same error.
>
> Can anyone explain to me how to use partials without a webserver in 
> angularjs?
>
> Thanks
>
> PS: I tried the solution in this link 
> http://www.andrejfarkas.com/2012/08/angularjs-partial-views-running-outside-of-http-server/,
>  
> however the solution is not clear enough and is incomplete. Also, the 
> solutions posted online deal with templates that are small, usually plain 
> text, but what I need is to include an entire html file (not just a 
> sentence).
>
> Thanks
>
>
>
>
>
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to