55
votes
3answers
4k views

When writing a directive, how do I decide if a need no new scope, a new child scope, or a new isolate scope?

I'm looking for some guidelines that one can use to help determine which type of scope to use when writing a new directive. Ideally, I'd like something similar to a flowchart that walks me though a ...
37
votes
4answers
12k views

How to integrate AngularUI to AngularJS?

Sorry for the silly question, does everyone know how to start using AngularUI? I've downloaded it from Github and read the instruction in README but still don't understand what I have to do.
14
votes
3answers
10k views

Angular JS::How/when to use ng-click to call a route?

Suppose you are using routes: // bootstrap myApp.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $routeProvider.when('/home', { templateUrl: ...
11
votes
1answer
5k views

How to tie angular-ui's typeahead with a server via $http for server side optimization?

The typeahead example (http://angular-ui.github.io/bootstrap/#/typeahead) mentions it's easy to implement a back end into this autocomplete, but provides no example. What interests me in particular is ...
11
votes
1answer
4k views

Setting initial values of Angular-UI Select2 multiple directive

I have a select2 directive for a multiple select of countries with a custom query to grab the data: // Directive <input ng-model="filters.countries" ui-select2="filters.countryOptions" ...
9
votes
2answers
2k views

Angular UI: Unknown provider: dialogProvider

I am trying to replicate the following Angular UI example of a simple dialog with a close-button. https://github.com/angular-ui/bootstrap/blob/master/src/dialog/README.md. However, I cannot get the ...
9
votes
1answer
3k views

Which one to use, AngularUI Bootstrap or AngularStrap? [closed]

I am a novice to AngularJS and its amazing. I need Twitter's bootstrap plugins in my projects. I stumbled upon these two GitHub projects AngularStrap http://mgcrea.github.com/angular-strap/ And ...
8
votes
1answer
7k views

Getting Angular UI to work

I've just installed Angular UI and I'm having trouble to make it work. Here are the stepts I followed: index.html (Angular v1.0.1, AngularUI v0.2.1) <script ...
7
votes
2answers
957 views

Using AngularJS / AngularUI with d3.js and DOM effects

I'm interested in using AngularJS for a project I'm working on. I've read a lot about it, watched the videos, done several sample apps. It all makes sense, I buy into the concepts. The project I'm ...
7
votes
1answer
93 views

How can I automatically go to the last selected child state when I view only the parent state with ui-router?

I have the following set up: var admin = { name: 'admin', url: '/admin', views: { 'menu': { templateUrl: ...
6
votes
3answers
668 views

Otherwise on StateProvider

Using angular-ui-router, How can I user the otherwise method on $stateProvider or how can I use it at all ?
5
votes
3answers
5k views

AngularJS and Bootstrap's split button dropdown

Do you know if someone ported Bootstrap's scripts to AngularJS? I need Bootstrap's split button dropdown for my app and I'd really like to avoid pulling jQuery in. I seem to fail to google this out.
5
votes
2answers
3k views

How to use a keypress event in angularjs

I want to catch the enter key press event on the textbox below ... to make it more clear i am using a ng-repeat to populate the tbody .. here is the html ... <td><input type="number" ...
5
votes
2answers
2k views

How are AngularJS and AngularUI related to each other?

I wonder what the relationship between AngularJS and AngularUI is? A quick look at the contributors' list seems to say that both projects are developed by independent teams. Does anyone know more ...
5
votes
2answers
5k views

angular.js conditional markup in ng-repeat

I'm using angular.js and (for the sake of argument) bootstrap. Now I need to iterate on "things" and display them in ''rows'' : <div class="row"> <div class="span4">...</div> ...

15 30 50 per page