Rows/columns as directives? #308
Comments
In fact, Angular could detect if the browser supports the CSS grid spec and use that instead... or attributes like |
My perspective is that UI Bootstrap directives should do something - that is, they should bring something to the table. Using a directive just to replace a template, while handy for the developer to be sure, doesn't to me seem like it's worth the DOM manipulation necessary to make it work. As for the CSS grid spec, we're looking to make UI Bootstrap support essentially any markup and style the developer wants, defaulting of course to Twitter Bootstrap, so this would be a hard option to implement generically. In terms of overall character counts, the two examples provided don't differ very much. So, would it really be worth the DOM manipulation to save a few keystrokes? Instead, snippets work well for me... :-) |
I tend to agree with @joshdmiller here (bizarre, I tend to agree with him quite often :-)). So we had this interesting discussion about directives that introduce custom tags in #216 There are many reasons to re-define HTML vocabulary but this re-definition needs to bring something: additional behavior, shorter syntax, easier to remember names etc. In the case described here I've got the feeling that we are just replacing one vocabulary with another one - at the moment I can't see added value of it. Given my current understanding of the World it would be -1 from me but hey, I'm open to be convinced :-) |
Closing for now, we can re-open if good arguments surface. |
Maybe I'm making a rookie mistake here, but I'm surprised not to see directives for the rows and columns.
e.g. instead of
something like
which could be converted to divs with bootstrap or foundation classes by Angular. Containers could default to be cloaked to prevent FUC. Rows inherit the fluidity of their container.
Plus of course, using the directives is entirely optional.
The text was updated successfully, but these errors were encountered: