Comments (7)
http://localhost:9000/#/prototest @micahgodbolt
from copelandia.
<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.
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.
If there are any further changes please re-open.
from copelandia.
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.
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.
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)
- Sharing data-binding between two includes, not an easy task... HOT 4
- Scss files: New Location HOT 2
- susy not found HOT 10
- Services vs RestWS HOT 8
- Recipe View HOT 5
- Implement Dynamic Routing HOT 6
- User registration and authentication HOT 6
- Let authenticated users submit recipes HOT 3
- Look into restangular
- errors, stuck after last pull HOT 2
- Page Routing Issue HOT 4
- Configure Solr HOT 3
- Set up Services + OAuth to authenticate client sites HOT 1
- Copelandia Needs more Emoji HOT 2
- Getting not allowed by Access-Control-Allow-Origin error HOT 5
- iOS client tweaks
- Initial Setup
- AngularJS client depend on deprecated restws HOT 1
- Question about RestWS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copelandia.