Disable content isolated scope

I want disable content isolated scope.
To use my function scope in my controller because I use angular-route.

View:

<div class="bar bar-header">
  <div class="h1 title">Contact</div>
</div>

<content has-header="true" padding="false" scroll="true">

    <h1 ng-click="goToMessage();">Pierre</h1>

<content>

Controller:

myAppControllers.controller('contactCtrl', ['$scope', '$http',
  function($scope, $http) {

    $scope.goToMessage = function() {
      window.location.href = '#/messages';
    }

}]);

Thank’s

You don’t need to disable isolated scope in content. That code should work just fine.

See : http://codepen.io/calendee/pen/bgAJF

1 Like