Look at this http://docs.angularjs.org/api/ng/directive/script


2014-02-28 20:27 GMT+04:00 Shaun Donnelly <[email protected]>:

> I'm wondering if anybody's developed a Firefox extension using AngularJS.
>
> Currently, I'm porting a Chrome extension to Firefox. For some reason, in
> Firefox, loading external templates doesn't work. Here's an example of a
> directive that works fine inside a Chrome extension:
>
> // Rest of code omitted.
> .directive('myDirective', function () {
>   return {
>     restrict : 'E',
>     templateUrl : '/templates/directives/mydirective.html',
>     replace : true
>   }
> })
> // Rest of code omitted.
>
>
> To make this work in Firefox, the template has to be declared inline:
>
> // Rest of code omitted.
> .directive('myDirective', function () {
>   return {
>     restrict : 'E',
>     template : '<div>my directive goes here</div>',
>     replace : true
>   }
> })
> // Rest of code omitted.
>
> The venn diagram of AngularJS developers and Firefox extension developers 
> doesn't seem to have much of an intersection, so I'm hoping somebody here can 
> help out a little!
>
> Shaun
>
>
>  --
> 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/groups/opt_out.
>



-- 

С Уважением,
Хлобыстин Евгений

-- 
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/groups/opt_out.

Reply via email to