Skip to content

Instantly share code, notes, and snippets.

@jens1101
Created October 5, 2017 07:29
Show Gist options
  • Save jens1101/0a7c4bef9a0b122b2630b536e99554b7 to your computer and use it in GitHub Desktop.
Save jens1101/0a7c4bef9a0b122b2630b536e99554b7 to your computer and use it in GitHub Desktop.
Optional Angular bindings
var app = angular.module('testModulePleaseIgnore', [])
app.component('legalReferences', {
bindings: {
foo: '&?',
bar: '<?',
baz: '=?',
qux: '@?'
},
controller: function() {
$ctrl.foo === undefined
$ctrl.bar === undefined
$ctrl.baz === undefined
$ctrl.qux === undefined
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment