Giter Site home page Giter Site logo

angular-multiple-transclusion's People

Contributors

mcasimir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-multiple-transclusion's Issues

Problem with browserify

Hi there is a problem with this module in conjunction with browserify. The problem is, that there is an illegal character after the right parentheses in if (transcludeAs !== attrs.transcludeFrom) { and also
there is a missing module.exports definition so the end result also produces errors.

Following patch should resolve both issues (github does not allow me to simply add the patch file, and I do not want to create a pull request, so sorry for appending it here as plain text) :

Index: src/main/webapp/scripts/node_modules/angular-multi-transclude/dist/angular-multi-transclude.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/webapp/scripts/node_modules/angular-multi-transclude/dist/angular-multi-transclude.js  (revision )
+++ src/main/webapp/scripts/node_modules/angular-multi-transclude/dist/angular-multi-transclude.js  (revision )
@@ -2,7 +2,8 @@
   if (typeof define === 'function' && define.amd) {
     define(['angular'], factory);
   } else if (typeof exports === 'object') {
-    factory(require('angular'));
+    module.exports = factory(require('angular'));
+
   } else {
     factory(root.angular);
   }
@@ -17,7 +18,7 @@

       link: function(scope, elem, attrs) {

-        if (attrs.transcludeFrom) {
+        if (attrs.transcludeFrom) {
           var children = elem.children();
           for (var i = 0; i < children.length; i++) {
             var child = angular.element(children[i]);
@@ -31,5 +32,5 @@
       }
     };
   });
-
+  return "angular-multi-transclude";
 }));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.