Skip to content

Commit 44dabd3

Browse files
committed
- Update:
+ Demo with angular 1.6. + Add function `gulp-vendor`.
1 parent f7644c6 commit 44dabd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+223
-72583
lines changed

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ node_modules
1818

1919
demo/bower_components
2020
demo/source
21+
22+
bower_components

demo/app.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ app = angular.module('TreeDnDTest', deps)
3636
scope.options = [
3737
{
3838
label: 'Table & Filter',
39-
href: '#/table'
39+
href: '#!table'
4040
},
4141
{
4242
label: 'List Tree',
43-
href: '#/list'
43+
href: '#!list'
4444
},
4545
{
4646
label: 'Advanced',
47-
href: '#/multi'
47+
href: '#!multi'
4848
},
4949
{
5050
label: 'Events',
51-
href: '#/event'
51+
href: '#!event'
5252
},
5353
{
5454

5555
label: 'Custom',
56-
href: '#/custom'
56+
href: '#!custom'
5757
},
5858
{
5959
label: 'Github',
@@ -122,12 +122,14 @@ app = angular.module('TreeDnDTest', deps)
122122
.directive('staticInclude', function ($http, $templateCache, $compile) {
123123
return function (scope, element, attrs) {
124124
var templatePath = attrs.staticInclude;
125-
$http.get(templatePath, {cache: $templateCache}).success(function (response) {
126-
var contents = element.html(response).contents();
127-
// console.log(contents);
128-
element.replaceWith(contents);
129-
$compile(contents)(scope);
130-
});
125+
$http.get(templatePath, {cache: $templateCache})
126+
.then(function (response) {
127+
var data = response.data || '';
128+
var contents = element.html(data).contents();
129+
// console.log(contents);
130+
element.replaceWith(contents);
131+
$compile(contents)(scope);
132+
});
131133
};
132134
})
133135
.factory('DataDemo', function () {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<tabset>
2-
<tab heading="{{type.label}}" ng-repeat="type in models.types">
1+
<uib-tabset>
2+
<uib-tab heading="{{type.label}}" ng-repeat="type in models.types">
33
<pre class="line-numbers" data-line="{{highlightLines[type.language]}}"><code class="language-{{type.language}}">{{type.source}}</code></pre>
4-
</tab>
5-
</tabset>
4+
</uib-tab>
5+
</uib-tabset>

demo/libs/vendor/angular-animate/.bower.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

demo/libs/vendor/angular-animate/LICENSE.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

demo/libs/vendor/angular-animate/README.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)