x Disruptor | 24 Jul 12:29 2014
Picon

Chromium CefSharp + Raw Html (directly from a C# string) + Angular => Problems when attempting to use routing

I stumbled upon the problem described here:

http://stackoverflow.com/questions/24921361/chromium-raw-html-directly-from-a-c-sharp-string-angular-problems-when

Is there anything that can be done to resolve/sidestep this issue? Any tips welcome.

Thank you in advance.

Cheers,
Dominick

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
maxim couton | 24 Jul 11:47 2014
Picon

Page refreshes in agluar

Hi,


  I am trying to use the accordion by bootrsap 

   Here is a link :  where I picked the  example : 

    http://jsfiddle.net/zessx/R6EAW/12/


  I works fine , but in angular there is a rootProvider which causes the page to refresh every time . 
  In a simple html page the page does not refresh 

  Any idea of how can I avoid the page to be resfreshed ? 


Thanks, 




--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
lipdjo | 24 Jul 11:41 2014
Picon

how to dynamically change the css(background-color) of a case in a table?

Hi,


Please I need some help.I'm a new angularjs programmer.My problem is the following :

I have 2 pages :

 - aaa.php with a javascript variable var thats changes dynamically (it comes from a query in a mysql database + a conversion from php to javascript).
 
- bbb.html with a table (4 rows and 4 columns).there is a particular case in the table with the id : <tr id="dynamic"> .

I would like to dynamically modify the color of this particular case with respect to the  value of the variable var ?

For example :

if var = 1 , the case has to be red (background-color = "red").
if var = 2 , the case has to change dynamically and becomes green (background-color = "green").

I know , my english is terrible. :)

 



--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Chinthaka Godauda | 24 Jul 09:41 2014
Picon

Simple Angular JS code not working in IE9

Following simple code with Angular JS code does not work in IE9. But it is ok in Chrome.
I want to make it work in IE9
Any one please help


Thanks

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
borja gómez | 24 Jul 09:31 2014
Picon

Resolve a dependency in tests with the dependecy name

Hi, i want to declare all the mocks i want to use on my tests and dinamically fake the services the problem is that i can see the way to get the services i want to mock. I'll give an example to try to explain it better:
(function(){
var myMocks;
function resolveService(serviceName){
//I DON'T KNOW WHO TO RESOLVE THE SERVICE HAVING IT'S NAME.
}
describe('the feature im going to tests',function(){//Using mocha to build the tests
//the tests...
beforeEach(module('moduleName'));
beforeEach(function(){//here is where i swap the real implementation with the mock
_.each(myMocks, function (serviceMethodsStub, serviceName) {//using lodash to iterate each mymocksProperty
                var srv = resolveService(serviceName);
                _.each(serviceMethodsStub, function (fxStub, fxName) {
sinon.stub(srv, fxName, fxStub)//using sinon to stub the methods
                });
            })
});
afterEach(function(){//after each i restore all the services mocked
_.each(myMocks, function (serviceMethodsStub, serviceName) {//using lodash to iterate each mymocksProperty
                var srv = resolveService(serviceName);
                _.each(serviceMethodsStub, function (fxStub, fxName) {
                    if (_.isFunction(srv[fxName].restore)) srv[fxName].restore();
                });
            });
})
});
myMocks = {
oneComponentIwanToMock:{
oneMethodIWantToMOck:function(){/*mock implementation*/}
otherMethodIWantToMOck:function(){/*mock implementation*/}
},
otherMethodIWantToMock:{
//...
}
}
})()
Any help would be appreciate. thanks

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
cjk | 24 Jul 06:00 2014
Picon

dynamic ng-model

I have a form with so many input controls. And I use ng-repeat to render the controls.
My problem now is how to declare for a valid ng-model.


$scope.fields = [
                  { label: "Name", fieldName: 'fldName'},
                  { label: "Age", fieldName: 'fldAge'},
                  { label: "Address", fieldName: 'fldAddress'}
               ];




 <table class="table table-condensed">
     <tbody>
         <tr ng-repeat="row in fields">
             <td>{{row.label}}</td>
              <td><input type="text" class="form-control" data-ng-model="row.fieldName" /></td>
          </tr>

      </tbody>
</table>

* data-ng-model="row.fieldName" - displays the actual 'fldName' word.




Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Eric Eslinger | 24 Jul 04:47 2014
Picon

Anyone have some angular template cache-buster techniques?

Hey all. Here's the issue: in my route and and directive modules, I have a lot of code that looks like:

templateUrl: 'foo/bar/templ.html'

The problem is when I push this to a real server, the templates get cached (as far as I can tell). So, what I want to do is something similar to how I deal with cache-busting my javascript files. However, all my JS loads are in one place (index.html), whereas those templates are in a ton of files all over the place and it's easy to miss one.

What I"m doing in the meantime is just injecting a constant called cacheVer and loading:

templateUrl: "foo/bar/templ.html?v=#{cacheVer.ver}" (coffeescript string interpolation).

Ideally, I could skip that (to clean the code, avoid potential errors, make more compatible stuff, and avoid injecting one component everywhere), and just register some kind of interceptor on maybe $httpProvider that appends the ?v= thingy on each and every request that's for an html file.

Has anyone done this? 

Eric

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Saulo | 23 Jul 23:07 2014
Picon

Cant unit test application with manual bootstrap in AngularJS

Hi Guys , i am facing a troube to bootstrap app in my unit tests, someone can help?

http://stackoverflow.com/questions/24920071/cant-unit-test-application-with-manual-bootstrap-in-angularjs

tHANKS.

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Jonathan Matthew Beck | 23 Jul 20:59 2014
Picon

Nested angular directives using controller scoped variable

I am adapting JSONEdit (https://github.com/mb21/JSONedit), which uses Angular recursion (having directives create copies of themselves and call $compile()) to build a tree of nested directives from JSON.

When I toggle a variable at controller scope level I want for a ng-show="" to be toggled in each directive.

Here is the Plunker.  You may look at directives.js line 245.  This ng-show="" statement should should text in the tree when the "Toggle Value" button is pressed.  I even debugged this stepping up the scope.$parent.$parent and it never leads back to the controller.

http://plnkr.co/edit/Na9Beq

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Axel Hernández Ferrera | 23 Jul 19:12 2014
Picon

Angular.js + ES6

What is your opinion about this example of angular.js + es6 classes ?

https://github.com/axelhzf/angular-es6

Master Thesis Sqore | 23 Jul 16:08 2014
Picon

Your opinion on which technologies to use when building web applications

Hi guys,

I guess most of you usually click ignore when you see an email asking for a survey.

Yes, we are doing a survey as well, but very differently :) We are asking for opinions that will lead to a great value for all of you, with your contribution.

Long story short, the goal is to help small medium companies with how to make choices from tons of available technologies when it comes to building web applications. Programming language, framework, database, frontend, hosting, developing tools, there are literally hundreds of technologies available out there.

For doing that, we need to know what criteria people like you value the most while choosing technology stack in Web Development.

We'll of course send a result to you if interested. The raw result might look like [http://bit.ly/1pcC88B]. And then we'll carry out analysis on technologies based on the top rated criteria. Apart from that, we'll also present real cases from companies about how they make choices and build things.

Oh by the way, it's for a Master Thesis, and we are doing it at Sqore, one of the coolest startups in Sweden, and KTH, Royal Institute of Technology.

Thank you very much.

Weiyan Shao (weiyans <at> kth.se)

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Gmane