Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <div ng-app="main4">
  2. <md-content ng-controller="main4Ctrl">
  3. <h2 class="md-display-1 ng-binding">Главная страница 3</h2>
  4.  
  5. <sapn id="firstCase">{{myText | transform}}</sapn> - it worked
  6. <hr>
  7. <span id="secondCase" ng-bind-html="myText"/> - but it not worked
  8. </md-content>
  9. </div>
  10.  
  11. angular.module('main4', [])
  12. .controller('main4Ctrl', ['$rootScope', '$scope', '$timeout',
  13. function($rootScope, $scope, $timeout) {
  14. $scope.myText = 'qWeRtYuIoP';
  15. }
  16. ]).filter('transform',[function(){
  17. return function(text){
  18. return transformTetx = text.toLowerCase();
  19. }
  20. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement