Browse Source

Base controller is now injected with a directive.

pull/100/head
Simon Eisenmann 11 years ago
parent
commit
eea9a6b30c
  1. 2
      html/main.html
  2. 7
      static/js/app.js

2
html/main.html

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<head>
<%template "head" .%>
</head>
<body ng-controller="MediastreamController">
<body spreed-webrtc>
<div id="background"></div>
<div id="loader"><div><i class="fa fa-circle-o-notch fa-spin"></i><div class="loader-message"></div></div></div>
<page></page>

7
static/js/app.js

@ -168,6 +168,13 @@ define([ @@ -168,6 +168,13 @@ define([
});
app.directive("spreedWebrtc", [function() {
return {
restrict: "A",
controller: "MediastreamController"
}
}]);
return app;
};

Loading…
Cancel
Save