Skip to content

Instantly share code, notes, and snippets.

View dylanlindgren's full-sized avatar

Dylan Lindgren dylanlindgren

View GitHub Profile
@croxton
croxton / circle.svg
Last active December 13, 2023 01:10
Passing parameters to a SVG when used as an object, while still being able to use as an image.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active November 29, 2023 15:35
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>