Created
January 21, 2016 04:15
-
-
Save codeaholicguy/8651a2ca705f8241182a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An Angular directive with dependencies | |
app.directive('myComponent', ['Notifier', '$filter', function(Notifier, $filter) { | |
const formatName = $filter('formatName'); | |
// use Notifier / formatName | |
}] | |
// ES6 Modules used by a React component | |
import Notifier from "services/notifier"; | |
import { formatName } from "filters"; | |
class MyComponent extends React.Component { | |
// use Notifier / formatName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment