Sha256: 840417e59821f591de57ca89f9911d95366ea382ef8229ca4bc2fb0eb0377e51

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 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"
        _element(options, &block)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.1 lib/angular_sprinkles/helpers/directive_helper.rb