Sha256: c65517980ed22d7209810c78e310ea40b1d8c6880810da822dd2b8ba3bfa0bc8
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 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-div" ng-bind="<%= ctrl.bind(:attribute) %>"></div> <div id="directive-ctrl-call-div" 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-div"> <label for="input">Input</label> <input id="input" name="input" type="text" ng-model="<%= @model.bind(:name) %>" /> </div> <%= ng_isolate do %> <%= ng_wrap('a', 'b') do |a, b| %> {{ <%= a.bind %> = 5 }} {{ <%= b.bind %> = 6 }} <div id="wrap-div">{{ <%= a.bind %> + <%= b.bind %> }}</div> <% end %> <% end %> <div id="bind-bind-div"> <label for="bind">Bind</label> <input id="bind" name="bind" type="text" ng-model="<%= ng_bind(:hello, :world) %>" /> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
angular_sprinkles-0.3.3 | spec/dummy/app/views/test/javascript_bindings.html.erb |