mcasimir / angular-multiple-transclusion Goto Github PK
View Code? Open in Web Editor NEWSimple unobtrusive angular multiple transclusion support with ng-transclude
Simple unobtrusive angular multiple transclusion support with ng-transclude
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";
}));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.