Sha256: 00cfe17106e097d48485a1ade7684da11d53d8915a3472c80998200a251e521c
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
<div id="data-binding-div" ng-bind="<%= @model.bind(:name) %>"></div> <div id="bind-service-div" ng-bind="<%= ng_service(:hello_world, @model.bind(:name)) %>"></div> <div id="bind-div" ng-bind="<%= ng_bind(:hello, :world) %>"></div> <%= ng_directive(:bigHelloWorld, html: { id: "directive-div" }) do |ctrl| %> <div id="directive-ctrl-bind" ng-bind="<%= ctrl.bind(:attribute) %>"></div> <div id="directive-ctrl-call" ng-bind="<%= ctrl.call(:func, 'func result') %>"></div> <%= ng_directive(:nested_directive, name: @model.bind(:name), html: { tag: 'h1' }) %> <% end %> <%= ng_controller(:someCtrl, html: { id: "ctrl-div" }) do |ctrl| %> {{ <%= ctrl.bind(:someValue) %> }} <% end %> <%= ng_isolate do |ctrl| %> <div ng-init="<%= ctrl.bind(:someValue) %> = 42"></div> <div id="isolate-div" ng-bind="<%= ctrl.bind(:someValue) %>"></div> <% end %> <div id="model-bind"> <label for="input">Input</label> <input id="input" name="input" type="text" ng-model="<%= @model.bind(:name) %>" /> </div> <div id="bind-bind"> <label for="bind">Bind</label> <input id="bind" name="bind" type="text" ng-model="<%= ng_bind(:hello, :world) %>" /> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
angular_sprinkles-0.3.2 | spec/dummy/app/views/test/javascript_bindings.html.erb |
angular_sprinkles-0.3.1 | spec/dummy/app/views/test/javascript_bindings.html.erb |