Sha256: 04b808d6eeb394f246e147842962a1631d2846c8f744bf2ba99b614548fc3714

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

module AngularSprinkles
  module Helpers
    module DirectiveHelper
      def ng_directive(directive_name, opts = {}, &block)
        options = opts.dup.symbolize_keys

        options[directive_name] = ""
        options[:scope_name] ||= "#{directive_name}Ctrl"
        _ng_element(options, &block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 lib/angular_sprinkles/helpers/directive_helper.rb
angular_sprinkles-0.3.2 lib/angular_sprinkles/helpers/directive_helper.rb