protected function metaComponentFactory($name, $value, $angularDirectives = false, $scope = '', $type = 'hidden')
    {
        /* @var Doozr_Form_Service_Component_Input $input */
        $input = $this->getRegistry()->getContainer()->build('doozr.form.service.component.input');

        $input->setName($name);
        $input->setType($type);
        $input->setValue($value);

        // Check for directive inject
        if (true === $angularDirectives) {
            $input->setAttribute('ng-model', sprintf('%s%s', $scope, $name));
            $input->setAttribute('value-transfer', $scope);
        }

        return $input;
    }