Last active
August 29, 2015 14:01
-
-
Save kosz/7643dc70c4092a366a2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
runtime in index.html <script> tag | |
angular.element(document).ready(function() { | |
angular.module('Movies', []); | |
angular.module('Movies').controller('MosaicController', | |
function ($scope, $http) { | |
$scope.teststuff = "hello" | |
}); | |
angular.bootstrap(document, ['Movies']); | |
}); | |
### | |
mosaic.html.erb | |
<p ng-if="true">Hello</p> | |
<div id="form_container" ng-controller="MosaicController"> | |
<form> | |
<label for="name">Name</label> | |
<input type="text" ng-model="testtest" name="name" /> | |
<p>{{testtest}}</p> | |
<br/> | |
</form> | |
<div ng-include="'/angularpartial.html'"></div> | |
</div> | |
### | |
angularpartial.html | |
Test my partial {{teststuff}} <- set in the controller "constructor" | |
Test my partial {{testtest}} <- set by the input field which has a model="testtest" | |
### Things to try : | |
- try to see if it works without the JQuery UI Dialog | |
- try to see if it works without a directive on the div tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment