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
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit bfbe1fb

Browse files
author
Dean Sofer
committed
all the things
1 parent 1544f61 commit bfbe1fb

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

‎NGUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ define(function (require, exports, module) {
3434
* RegExp matches any sequence of characters that is not whitespace.
3535
* @type {RegExp}
3636
*/
37-
var _functionRegExp = /angular\.directive\(['"]([a-zA-Z-]+)['"]/g;
37+
var _functionRegExp = /\.directive\(['"]([a-zA-Z-]+)['"]/g;
3838

3939
/**
4040
* @private

‎screenshot.png

51.8 KB
Loading[フレーム]

‎test.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1+
<html>
2+
<head>
13
<script>
2-
angular.directive('ng-repeat')
4+
var myModule = angular.module('myModule', []);
5+
myModule.directive('ng-repeat', function(){
6+
return {
7+
template: '<cool>I hope this works</cool>',
8+
scope: {},
9+
link: function($scope, $elm, $attrs) {
10+
// do awesome stuff here
11+
alert('nice');
12+
}
13+
};
14+
});
315
</script>
4-
<div ng-repeat="i in items"></div>
16+
<link type="text/css" href="" />
17+
<title>AngularJS Brackets Demo</title>
18+
</head>
19+
<body ng-app="myModule">
20+
21+
<h1>Kickass</h1>
22+
23+
<ul>
24+
<li ng-repeat="i in items"></li>
25+
</ul>
26+
</body>
27+
</html>

0 commit comments

Comments
(0)

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