yes i've replace that onclick event code with the route and it works so the 
issue is solved thank you bye

Il giorno lunedì 18 agosto 2014 00:04:23 UTC+2, Eric Eslinger ha scritto:
>
> It would help if you posted a plunker for your code that doesn't work:
>
> http://plnkr.co/
>
> Getting a minimum broken example is good practice for improving your own 
> coding, if nothing else. Plus, you're not giving enough information in your 
> post in general, as to what you're trying to accomplish and what is 
> actually happening (where the error occurs).
>
> At the very least, don't use onclick in your <a> elements if you want to 
> have angular do stuff on a click. Instead use ng-click, which works in a 
> similar fashion, but is hooked into angular's scope (onclick event's can't 
> access the scope without being tricky, IIRC) and event cycle (onclick 
> events also don't update data bindings unless you manually call an $apply).
>
> e
>
>
>
>
> On Sun, Aug 17, 2014 at 2:50 PM, Seth Hubert <[email protected] 
> <javascript:>> wrote:
>
>> I ran into something similar earlier today ...
>> I don't know if this will help, but I think you may have to add '$scope', 
>> '$http' to your dependencies list.
>>
>>     module.controller("RouteController1", *['$scope', '$http',* function(
>> $scope,$http) {
>>            $http.get('./json/hotelproximity.json').success(function(data) 
>> {
>>
>>
>> On Saturday, August 16, 2014 7:28:29 AM UTC-7, roberta sander wrote:
>>>
>>> Hi i'm using angularjs inside a wordpress plugin it add a jquery tab 
>>> after the article
>>> in the first tab there is this line echo "<p>".$this->printHTMLNG()."</
>>> p>";
>>> this php function shows an html that load json data from angularjs
>>> it works and this is the angularjs code
>>> Inserisci qui il codice...function ArtistsController($scope, $http) {
>>>    
>>>     
>>>     $http.get('./wp-content/plugins/WpGeoLocalPost/json/
>>> hotelproximity.json').success(function(data) {
>>>         $scope.artists = data;
>>>         //$scope.hotels = data.HotelInformationResponse.HotelSummary;
>>>         
>>>     });
>>>     
>>>     
>>> } 
>>>
>>> i need that when i click on this link
>>>
>>> Inserisci qui il codice...<a href="#" onclick="___it 
>>> should_load_another_json_with_the_artist_id___">{{artist.name}}</a>
>>>
>>>
>>> it should activate another controller that loads json data passing the 
>>> id in the json url
>>> i don't know how to do that i've bought a book it hasn't arrived yet and 
>>> on the internet i couldn't find something similar could you help me??thank 
>>> you
>>>
>>  -- 
>> 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] <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/d/optout.
>>
>
>

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