Issue #1819Opened February 20, 2019by sushiljic0 reactions

[Question]: Block content attributes (ngModel in my case) forced to lowercase

Question

I am trying to use angular directive. On any of the block content, for example bm.add('radio-block',{ label:'Basic Form Element', category: c.category, content: '<input type="text" name="username" id="username" ngModel> ' }) on export ngModel will be ngmodel So what will be possible solution so that it display ngModel on export Code I have also look for the issue#1591 But Could not find solution.

Answers (2)

artfFebruary 22, 20190 reactions

ngModel is converted in ngmodel by the browser (HTML5 doesn't accept uppercase for attributes) You can skip the parser by passing a component object

bm.add('radio-block', { 
	label:'Basic Form Element', 
	content: {
		tagName: 'input',
		attributes: { type: 'text', ngModel: true }
	}
})
lock[bot]February 22, 20200 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.