I wrote quite a simple function with some Jquery code in it and I can't get it to work for some reason.
What am I missing?
HTML
<div ng-app='myApp'>
<div ng-controller="DropdownCtrl">
  <p>Here should be five ->  </p>
</div>
</div>
JS
var myApp = angular.module('myApp', []);
myApp.controller('MainCtrl', function ($scope) {
  $scope.onload = function(scope) {
    $('p').each(function(){
      $(this).html($(this).html().replace(/ /gi,"5"));
    });
  };
});
 
     
     
    