Last active
April 12, 2018 13:30
-
-
Save dormd/9488bdb79e6cac8e937030ab5c2a413e 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
import { HybridHelper } from './hybrid-helper.v4'; | |
import { DocumentsService, AnotherService } from './services'; | |
import { DocumentComponent, AnotherComponent, AnotherComponent2, AnotherComponent3 } from './components'; | |
const moduleName = 'document'; | |
angular.module(moduleName, [...]); | |
HybridHelper | |
.downgradeComponent(moduleName, 'document', DocumentComponent, { | |
inputs: ['name', 'size', 'numOfPages', 'content'], | |
outputs: ['opened', 'contentChanged', 'closed'] | |
}) | |
.downgradeComponent(moduleName, 'another', AnotherComponent, { | |
inputs: ['inp1', 'inp2'] | |
}) | |
.downgradeComponent(moduleName, 'another2', AnotherComponent2, { | |
outputs: ['out1', 'out2'] | |
}) | |
.downgradeComponent(moduleName, 'another3', AnotherComponent3) | |
.downgradeProvider(moduleName, 'DocumentsService', DocumentsService) | |
.downgradeProvider(moduleName, 'AnotherService', AnotherService); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment