File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 <span ng-bind-html="linky_expression | linky"></span>
2222 *
2323 * @example
24- <example module="ngSanitize " deps="angular-sanitize.js">
24+ <example module="linkyExample " deps="angular-sanitize.js">
2525 <file name="index.html">
2626 <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+ }]);
3637 </script>
37- <div ng-controller="Ctrl ">
38+ <div ng-controller="ExampleController ">
3839 Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
3940 <table>
4041 <tr>
You can’t perform that action at this time.
0 commit comments