Is the rewrite a redirect, or a server-only rewrite? If it's server-only, 
you basically can't get it without putting it in the output somewhere for 
you to retrieve.

On Monday, May 19, 2014 12:48:48 AM UTC-7, Denis Kajdic wrote:
>
> What is the best way to pull a query parameter from the URL in a 
> non-SPApplication?
>
> Notes:
>
>
>    1. My URL looks like this: mydomain.com/company-seo-name.html
>    2. I need this part "company-seo-name"
>    3. Since this is rewritten in .htaccess, the actual URL 
>    (un-rewritten): /directory.php?content=entry&eid=company-seo-name
>
> When I visit such a page (company page) I need to have that part so I can 
> pass it to my Service's query object so I can retrieve the right company on 
> my jsonresponse.php page that returns actual data.
>
> At the moment I have this in my controller:
>
> $scope.content = PostsResource.query( {from: $scope.networkCalled} );
>>
>
>  My intention is to pass this value as well along the value of chosen 
> social network!
>
> If anyone is interested, my service (factory) looks like this:
>
> angular.module('socialPosts.services', ['ngResource'])
>>
>>         .factory('PostsResource', ['$resource', function($resource){
>>
>>                 return $resource('response.php', {}, {
>>
>>                     query: { method: 'GET', params: '', isArray: true }
>>
>>                 })
>>
>>         }])
>>
>> ;
>>
>>
>  
>

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