바인딩되지 않습니다
템플릿이 이미이 요소에 주입되었지만 아직 아니다 경계.개편, 구성 요소, 템플릿은 이미이 요소에 주입되었지만 아직 내가이 문장을 이해하지 못하는 <a href="http://knockoutjs.com/documentation/component-registration.html" rel="nofollow">Knockoutjs Docs</a>에서
ko.components.register('my-component', {
viewModel: {
createViewModel: function(params, componentInfo) {
// - 'params' is an object whose key/value pairs are the parameters
// passed from the component binding or custom element
// - 'componentInfo.element' is the element the component is being
// injected into. When createViewModel is called, the template has
// already been injected into this element, but isn't yet bound.
// Return the desired view model instance, e.g.:
return new MyViewModel(params);
}
},
template: ...
});