Comments (9)
OK, from the discussion on the pull request this doesn't make much sense as a directive, really. The question would ne then - do we want to add demo snippets to the documentation page. So, even if we don't offer any directives we could at least show people how to turn bootstrap's markup into a dynamic, AngulaJS-powered version.
So the question here is the following one: do we want to have those mini-demos on the demo page, mixed with other directives?
from bootstrap.
Actually, I really like the idea of
<button toggle ng-model="some.value"></button>
or
<toggle-button ng-model="some.value"></toggle-button>
On 11 January 2013 18:58, Pawel Kozlowski [email protected] wrote:
OK, from the discussion on the pull request this doesn't make much sense
as a directive, really. The question would ne then - do we want to add demo
snippets to the documentation page. So, even if we don't offer any
directives we could at least show people how to turn bootstrap's markup
into a dynamic, AngulaJS-powered version.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/53#issuecomment-12158283.
from bootstrap.
@petebacondarwin and you are telling it just now??? :-) No, but seriously, what do we do about this thing?
from bootstrap.
I honestly think it is worthy. It would have to plug into ng-model though.
from bootstrap.
@petebacondarwin ok, it really feels like it is close to a check-box. So maybe it should also support things like true-value and false-value (those should be booleans by default).
from bootstrap.
Well you should read this issue then also: angular/angular.js#1199 (comment)
from bootstrap.
Yep, had this one on my mind as well :-)
from bootstrap.
Yeah, I guess we could add this since bootstrap has it. It does sound kind of attractive .. it's just kinda funny making a directive for something that is a few words of html attributes in angular.
If we do make it, we should make the apis copy native angular directives: button-group
copying <input type="radio">
(ng-model, value) and button-toggle
copying <input type="checkbox">
(ng-model, ng-checked)
from bootstrap.
OK, another try here: http://plnkr.co/edit/cccFMc3qmNgKCr7inUX3?p=preview
AngularJS is simply awesome! Could anyone could explain to me how come AngularJS version of reusable component has 1/3 size of the original code (https://github.com/twitter/bootstrap/blob/master/js/bootstrap-button.js)??? Not to mention the fact that it doesn't require any wrappers!!!
Will prepare a PR tomorrow but if anyone from @angular-ui/bootstrap could have a quick look it would be awesome!
from bootstrap.
Related Issues (20)
- package.json for 2.5.6 tag contains version=2.5.4 HOT 1
- Pagination design HOT 1
- TypeError: ctrlInstantiate is not a function in ui-bootstrap-tpls.js HOT 2
- $UIModal TypeError: ctrlInstantiate is not a function - 1.7.1 Bower Angular HOT 14
- Carousel one by one? HOT 1
- Angular uib-tabset/uib-tab wrong ActiveTab index if tabs are created dynamically HOT 1
- Typeahead result set to uppercase HOT 2
- Typeahead won't allow non-search result values HOT 1
- Static Code Analysis Findings HOT 1
- Pagination UI Bootstrap 4 for AngularJS and JSON. HOT 1
- Controller 'uibTabset', required by directive 'uibTabContentTransclude', can't be found! HOT 1
- Collapsible panel with multiple tiles HOT 1
- TypeError: transclude is not a function HOT 2
- How to use the Angular Bootstrap Popover in AngularUi calendar? HOT 1
- There is no possibility to customise the datepicker HOT 1
- how to focus textarea everytime I open modal HOT 1
- Typeahead a11y issues within Firefox HOT 1
- der HOT 1
- der HOT 1
- how to add customized text under dates in datepicker in uib-datepicker 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 bootstrap.