Sha256: dba0ad8cc60a9df6287c57a82a3dc0acdeaf1c54e87162dcb16e14b44c32c1fd

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

module AngularSprinkles
  module Helpers
    module IsolateHelper
      def ng_isolate(opts = {}, &block)
        controller_name = "isolate_#{SecureRandom.hex}"
        isolate_controller = ObjectKeyWrapper.new(controller_name, JavaScript::IsolateController)

        @_sprinkles.content_yielder.call(isolate_controller)
        ng_controller(controller_name, opts, &block)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 lib/angular_sprinkles/helpers/isolate_helper.rb
angular_sprinkles-0.3.2 lib/angular_sprinkles/helpers/isolate_helper.rb
angular_sprinkles-0.3.1 lib/angular_sprinkles/helpers/isolate_helper.rb