This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 21
21
<span ng-bind-html="linky_expression | linky"></span>
22
22
*
23
23
* @example
24
- <example module="ngSanitize " deps="angular-sanitize.js">
24
+ <example module="linkyExample " deps="angular-sanitize.js">
25
25
<file name="index.html">
26
26
<script>
27
- function Ctrl($scope) {
28
- $scope.snippet =
29
- 'Pretty text with some links:\n'+
30
- 'http://angularjs.org/,\n'+
31
- 'mailto:us@somewhere .org,\n'+
32
- 'another@somewhere.org,\n'+
33
- 'and one more: ftp://127.0.0.1/.';
34
- $scope.snippetWithTarget = 'http://angularjs.org/';
35
- }
27
+ angular.module('linkyExample', ['ngSanitize'])
28
+ .controller('ExampleController', ['$scope', function($scope) {
29
+ $scope.snippet =
30
+ 'Pretty text with some links:\n'+
31
+ 'http://angularjs.org/,\n'+
32
+ 'mailto:us@somewhere .org,\n'+
33
+ 'another@somewhere.org,\n'+
34
+ 'and one more: ftp://127.0.0.1/.';
35
+ $scope.snippetWithTarget = 'http://angularjs.org/';
36
+ }]);
36
37
</script>
37
- <div ng-controller="Ctrl ">
38
+ <div ng-controller="ExampleController ">
38
39
Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
39
40
<table>
40
41
<tr>
You can’t perform that action at this time.
0 commit comments