Hi,
 
            It was quite easy to pick up this example and make it work.
 
.directive("zippy", function(){
 return {
   restrict: "E",
   transclude: true,
   scope: {
     title: "@"
   },
   templateUrl: "/zippy.html",
   link: function(scope){
     scope.isContentVisible = false;
     scope.toggleContent = function(){
       scope.isContentVisible = !scope.isContentVisible;
     };
   }
 };
})
 
So this is served from my NodeJS web server.
 
How do I serve an html file from an external server ? Should I use $http in 
a controller in the directive ? CORS ?
 
Thanks,
Mohan

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