the following URL requests work without any issue:
http://mysite.com/myapp
http://mysite.com/myapp/
http://mysite.com/myapp/controller    (<- notice the no trailing "/" )

The following URLs cause the error:
http://mysite.com/myapp/controller/
http://mysite.com/myapp/controller/method
http://mysite.com/myapp/controller/method/


On Friday, July 18, 2014 4:00:40 PM UTC-5, Romer Ventura wrote:
>
> I am sending all requests to my index.php using the following .htaccess:
> RewriteBase /myapp/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ index.php [L]
>
> Pointing the browser to http://localhost/myapp/  bring up my app and 
> everything works just fine (as demonstrated it in the plunker), the problem 
> occours when i try to do: http://locahost/myapp/controller/method type of 
> url. At this moment, ng-repeat complaints about dupes. I tried to fix the 
> problem by using "track by $index", this got rid of the error, however, 
> when my page rendered, i had several hundreds of the "item boxes" all 
> without any content.
>
> I can assume that the initial error about dupes, it is because angular is 
> trying to create items that have already been created and i can reassure 
> this because tracking by $index makes it go totally bananas. 
>
> I cannot figure out why this is happening only when passing URLs with 
> controllers and methods in them.. 
>
> Can anyone point me in the right direction?
>
> Thanks
>
>
> http://plnkr.co/edit/iDt6yqyOPMN0AdauNhFN?p=preview
>

-- 
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.

Reply via email to