Giter VIP home page Giter VIP logo

Comments (7)

webthingee avatar webthingee commented on June 4, 2024

http://localhost:9000/#/prototest @micahgodbolt

from copelandia.

webthingee avatar webthingee commented on June 4, 2024
<repeat-ntimes repeat="4">
    <h1>Header 1</h1>
    <p>This is the paragraph.</p>
  </repeat-ntimes>
  <hr/>
  <repeat-ntimes repeat="3">
    <p>Lucas ipsum sit amet darth biggs skywalker binks darth jade yavin darth moff jango. Utapau yoda darth yoda coruscant darth dooku. Mace jade solo qui-gon lando vader droid. Ben chewbacca skywalker droid owen. Qui-gon fett hutt sidious palpatine.</p>
  </repeat-ntimes>

from copelandia.

sirkitree avatar sirkitree commented on June 4, 2024

I made a change to this that we discussed in the commit. See 12dd022

So now instead of using <repeat-ntimes repeat="N"> you can use <ANYTAG data-proto-repeat="N"> to iterate the clone the contents N times.

from copelandia.

sirkitree avatar sirkitree commented on June 4, 2024

If there are any further changes please re-open.

from copelandia.

webthingee avatar webthingee commented on June 4, 2024

Let's look at the pros for a custom element.

Something about using the div, on an element that you are intending to replace (strip out) seems like it could be improved and accomplished and be more elegant to me by being clearly a replacement/todo indicator.

This would allow one to write all of the necessary html inside of the directive, and very clearly see that it is a place holder. Conversely, seeing a long line of HTML code with divs, the ability to quickly identify these <div data-xyz="5"> could/would get lost amongst all of the divs, where as <proto-repeat="4"> seems like it would server as a clear indication that HERE DUDE, THERE"S SOMETHING TO DO.

:)

from copelandia.

sirkitree avatar sirkitree commented on June 4, 2024

Good points, all.

I suppose if you're looking at this as something only prototypers would utilize vs. something we'd actually use in production, it makes sense. I'm trying, but I can't really think of a use case in which we'd actually want to use this in production either, since anything in production would most likely be wired up to data and therefor utilize ng-repeat. Can you think of any such instance?

from copelandia.

webthingee avatar webthingee commented on June 4, 2024

Pro HTML DIV tag...
. ajax or javascript into a pre-defined space/spaces.

Perhaps a grid that we would need to place content into an existing space.
Perhaps pre-defined tab markup that could auto create several Ul LI DIV structures for a quick ajax.

from copelandia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.