Renamed bindings into providers

This commit is contained in:
Roman Gotsiy 2015-10-17 21:56:24 +03:00
parent c8652f7f6d
commit 3a61d252d3
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import {PathsList} from '../PathsList/paths-list';
@RedocComponent({ @RedocComponent({
selector: 'redoc', selector: 'redoc',
bindings: [SchemaManager], providers: [SchemaManager],
templateUrl: './lib/components/Redoc/redoc.html', templateUrl: './lib/components/Redoc/redoc.html',
directives: [ApiInfo, PathsList] directives: [ApiInfo, PathsList]
}) })

View File

@ -15,7 +15,7 @@ const CHANGE = {
@RedocComponent({ @RedocComponent({
selector: 'side-menu', selector: 'side-menu',
bindings: [SchemaManager], providers: [SchemaManager],
templateUrl: './lib/components/SideMenu/side-menu.html', templateUrl: './lib/components/SideMenu/side-menu.html',
directives: [SideMenuCat] directives: [SideMenuCat]
}) })

View File

@ -23,7 +23,7 @@ function safeConcat(a, b) {
* @param {*[]} options.directives - directives used by component * @param {*[]} options.directives - directives used by component
* (except CORE_DIRECTIVES) * (except CORE_DIRECTIVES)
* @param {*[]} options.pipes - pipes used by component * @param {*[]} options.pipes - pipes used by component
* @param {*[]} options.bindings - component bindings * @param {*[]} options.providers - component providers
* @param {string} options.templateUrl - path to component template * @param {string} options.templateUrl - path to component template
* @param {string} options.template - component template html * @param {string} options.template - component template html
* @param {string} options.styles - component css styles * @param {string} options.styles - component css styles
@ -40,7 +40,7 @@ export function RedocComponent(options) {
inputs: inputs, inputs: inputs,
outputs: options.outputs, outputs: options.outputs,
lifecycle: [OnInit], lifecycle: [OnInit],
bindings: options.bindings providers: options.providers
}); });
let viewDecorator = View({ let viewDecorator = View({
templateUrl: options.templateUrl, templateUrl: options.templateUrl,