Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b767c8c

Browse files
clean examples
1 parent 87d70ea commit b767c8c

File tree

48 files changed

+164
-18229
lines changed

Some content is hidden

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

48 files changed

+164
-18229
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
tmp/
2+
13
# Logs
24
logs
35
*.log
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
functionHomeCtrl($scope) {
1+
app.controller('HomeCtrl',['$scope',function($scope) {
22
$scope.name = 'total.js + angular.js = awesome';
33
$scope.users = [{ name: 'Peter', age: 30 }, { name: 'Michal', age: 34 }, { name: 'Lucia', age: 33 }];
4-
}
4+
}])
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
functionUserCtrl($scope) {
1+
app.controller('UserCtrl',['$scope',function($scope) {
22
$scope.name = 'user';
3-
}
3+
}]);

‎angularjs-bootstrap/modules/angular.js‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// MIT License
2+
// Copyright Peter Širka <petersirka@gmail.com>
23
// Version 1.01
34

45
exports.name = 'angular.js';
5-
exports.version = '1.00';
6-
exports.options = { 'angular-version': '1.2.18', 'angular-i18n-version': '1.2.15' };
6+
exports.version = '1.01';
7+
exports.options = { 'angular-version': '1.3.15', 'angular-i18n-version': '1.3.15' };
78

89
var fs = require('fs');
910
var EXTENSION_JS = '.js';
@@ -13,7 +14,9 @@ var REPOSITORY_ANGULAR_COMMON = '$angular-common';
1314
var REPOSITORY_ANGULAR_CONTROLLER = '$angular-controller';
1415
var REPOSITORY_ANGULAR_OTHER = '$angular-other';
1516

16-
exports.install = function(framework, options) {
17+
exports.install = function() {
18+
19+
var options = framework.version >= 1900 ? arguments[0] : arguments[1];
1720

1821
Utils.extend(exports.options, options, true);
1922

@@ -74,14 +77,14 @@ exports.install = function(framework, options) {
7477

7578
if (length > 1) {
7679
for (var i = 0; i < length; i++)
77-
self.ngCommon.call(self, arguments[i]);
80+
framework.helpers.call(self, arguments[i]);
7881
return '';
7982
}
8083

8184
if (name instanceof Array) {
8285
length = name.length;
8386
for (var i = 0; i < length; i++)
84-
self.ngCommon.call(self, name[i]);
87+
framework.helpers.ngCommon.call(self, name[i]);
8588
return '';
8689
}
8790

@@ -128,7 +131,7 @@ exports.install = function(framework, options) {
128131
if (name.lastIndexOf(EXTENSION_JS) === -1)
129132
extension = EXTENSION_JS;
130133

131-
output += $script_create(isLocal ? '/i18n/angular-locale_' + name + extension : '//cdnjs.cloudflare.com/ajax/libs/angular-i18n/' + exports.options['angular-i18n-version'] + '/angular-locale_' + name + extension);
134+
output += $script_create(isLocal ? '/i18n/angular-locale_' + name + extension : '//cdnjs.cloudflare.com/ajax/libs/angular.js/' + exports.options['angular-i18n-version'] + '/i18n/angular-locale_' + name + extension);
132135
self.repository[REPOSITORY_ANGULAR_LOCALE] = output;
133136

134137
return '';
@@ -404,7 +407,7 @@ exports.install = function(framework, options) {
404407
framework.on('controller-render-head', event_render_head);
405408
};
406409

407-
exports.uninstall = function(framework) {
410+
exports.uninstall = function() {
408411
delete framework.helpers.ng;
409412
delete framework.helpers.ngInclude;
410413
delete framework.helpers.ngResource;
@@ -427,4 +430,4 @@ function event_render_head(controller) {
427430

428431
function $script_create(url) {
429432
return '<script type="text/javascript" src="' + url + '"></script>';
430-
}
433+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
functionHomeCtrl($scope) {
1+
app.controller('HomeCtrl',['$scope',function($scope) {
22
$scope.name = 'total.js + angular.js = awesome';
33
$scope.users = [{ name: 'Peter', age: 30 }, { name: 'Michal', age: 34 }, { name: 'Lucia', age: 33 }];
4-
}
4+
}]);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
functionUserCtrl($scope) {
1+
app.controller('UserCtrl',['$scope',function($scope) {
22
$scope.name = 'user';
3-
}
3+
}]);

‎angularjs-common/controllers/default.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
exports.install = function() {
2-
framework.route('/*', view_app);
2+
F.route('/*', view_app);
33
};
44

55
function view_app() {

‎angularjs-common/definitions/angular.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ var options = {};
44
// options['angular-version'] = '1.2.18';
55
// options['angular-i18n-version'] = '1.2.15';
66

7-
INSTALL('module', 'https://modules.totaljs.com/angular.js/v1.00/angular.js', options);
7+
INSTALL('module', 'https://modules.totaljs.com/angular.js/v1.01/angular.js', options);

‎angularjs-common/modules/angular.js‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// MIT License
2+
// Copyright Peter Širka <petersirka@gmail.com>
23
// Version 1.01
34

45
exports.name = 'angular.js';
5-
exports.version = '1.00';
6-
exports.options = { 'angular-version': '1.2.18', 'angular-i18n-version': '1.2.15' };
6+
exports.version = '1.01';
7+
exports.options = { 'angular-version': '1.3.15', 'angular-i18n-version': '1.3.15' };
78

89
var fs = require('fs');
910
var EXTENSION_JS = '.js';
@@ -13,7 +14,9 @@ var REPOSITORY_ANGULAR_COMMON = '$angular-common';
1314
var REPOSITORY_ANGULAR_CONTROLLER = '$angular-controller';
1415
var REPOSITORY_ANGULAR_OTHER = '$angular-other';
1516

16-
exports.install = function(framework, options) {
17+
exports.install = function() {
18+
19+
var options = framework.version >= 1900 ? arguments[0] : arguments[1];
1720

1821
Utils.extend(exports.options, options, true);
1922

@@ -74,14 +77,14 @@ exports.install = function(framework, options) {
7477

7578
if (length > 1) {
7679
for (var i = 0; i < length; i++)
77-
self.ngCommon.call(self, arguments[i]);
80+
framework.helpers.call(self, arguments[i]);
7881
return '';
7982
}
8083

8184
if (name instanceof Array) {
8285
length = name.length;
8386
for (var i = 0; i < length; i++)
84-
self.ngCommon.call(self, name[i]);
87+
framework.helpers.ngCommon.call(self, name[i]);
8588
return '';
8689
}
8790

@@ -128,7 +131,7 @@ exports.install = function(framework, options) {
128131
if (name.lastIndexOf(EXTENSION_JS) === -1)
129132
extension = EXTENSION_JS;
130133

131-
output += $script_create(isLocal ? '/i18n/angular-locale_' + name + extension : '//cdnjs.cloudflare.com/ajax/libs/angular-i18n/' + exports.options['angular-i18n-version'] + '/angular-locale_' + name + extension);
134+
output += $script_create(isLocal ? '/i18n/angular-locale_' + name + extension : '//cdnjs.cloudflare.com/ajax/libs/angular.js/' + exports.options['angular-i18n-version'] + '/i18n/angular-locale_' + name + extension);
132135
self.repository[REPOSITORY_ANGULAR_LOCALE] = output;
133136

134137
return '';
@@ -404,7 +407,7 @@ exports.install = function(framework, options) {
404407
framework.on('controller-render-head', event_render_head);
405408
};
406409

407-
exports.uninstall = function(framework) {
410+
exports.uninstall = function() {
408411
delete framework.helpers.ng;
409412
delete framework.helpers.ngInclude;
410413
delete framework.helpers.ngResource;

‎angularjs-common/tmp/app.js‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /