{% assign lvl = page.url | append:'X' | split:'/' | size %} {% capture relative %}{% for i in (3..lvl) %}../{% endfor %}{% endcapture %}
  Edit in Plunker
{% raw %}<fa-app ng-controller="TouchStartCtrl">

  <!-- The fa-view receives the touchstart event from the fa-surface, and calls $scope.touchStart, bound to fa-touchstart on the fa-view. -->

  <fa-view fa-touchstart="touchStart($event)" fa-pipe-from="myEvents">
    <fa-modifier fa-size="[200, 100]">
      <fa-surface fa-pipe-to="myEvents"
                  fa-background-color="'orange'">
        Touch start count: {{touchStartCount}}
      </fa-surface>
    </fa-modifier>
  </fa-view>
</fa-app>

<script>
  angular.module('faTouchStartExampleApp', ['famous.angular'])
    .controller('TouchStartCtrl', ['$scope', '$famous', function($scope, $famous) {
        
        var EventHandler = $famous['famous/core/EventHandler'];
        $scope.myEvents = new EventHandler();

        $scope.touchStartCount = 0;
        
        $scope.touchStart = function($event) {
          console.log($event);
          $scope.touchStartCount++;
        };

    }]);
</script>{% endraw %}
{% raw %}fa-app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}{% endraw %}
;$scope', '$famous', function($scope, $famous) { var EventHandler = $famous['famous/core/EventHandler']; $scope.eventHandler = new EventHandler(); $scope.list = [{ content: "Awesome content" },{ content: "Scroll vertically to see more awesome content" },{ content: "Famo.us/angular rocks!" } ]; $scope.options = { scrollViewOuter: { direction: 0, paginated: true }, scrollViewInner :{ direction: 1 } }; }]); </script>{% endraw %} ode>{% raw %}angular.module('faPipeExampleApp', ['famous.angular']) .controller('PipeCtrl', ['$scope', '$famous', function($scope, $famous) { // Event Handlers var EventHandler = $famous['famous/core/EventHandler']; $scope.mainPipe = new EventHandler(); $scope.emptyPipe = new EventHandler(); // items in ng-repeated list in each of the 3 Scroll Views $scope.list = []; for (var i = 0; i < 10; i++) { $scope.list.push({}); }; // 3 inputs in the directional pad corresponding to the 3 scroll views $scope.inputList = [{model: "checkBox.A", letter: "A"},{model: "checkBox.B", letter: "B"}, {model: "checkBox.C", letter: "C"}]; // 3 scrollviews $scope.scrollViews = [{pipe: "pipes.A", bgColor: "blue"}, {pipe: "pipes.B", bgColor: "red"}, {pipe: "pipes.C", bgColor: "green"}]; // pipes that each of the 3 scroll views is binded to through fa-pipe-from $scope.pipes = { A: $scope.emptyPipe, B: $scope.emptyPipe, C: $scope.emptyPipe }; // function that is called whenever a checkbox is checked/unchecked that assigns the fa-pipe-from $scope.checkBoxChange = function(model, value) { if (value !== "false") { $scope.pipes[model] = $scope.mainPipe; } else { $scope.pipes[model] = $scope.emptyPipe; }; }; }]);{% endraw %}
{% raw %}fa-app {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}{% endraw %}