FAQ Database Discussion Community


ng-switch in Angular2

typescript,angular2,ng-switch
I am playing around with angular 2 (currently with version alpha 26). ng-for and ng-if for example are working fine. I do however have problems with ng-switch. I just can't get it to work, i.e. nothing is printed. It seems as if the whole template is ignored. This is the...

Change view after a post in AngualJs

jquery,angularjs,angularjs-scope,angularjs-routing,ng-switch
I am doing a SPA. I am using ngResources and I have a really simple form. User can compile it and after he submit the form should appear a new form with only a message that says something like this: "Thank you to use our form ..." I would like...

Angular ng-switch inside select option

javascript,angularjs,ng-switch
I want the [Data Presentation Format] applied to [Dropdown Box]. I need the "parent" to be presented as is inside the dropdown box, but I need the "child" to be presented with with a [tab], to show the parent-child relationship. $scope.itemlist will be prepared in order (i.e. parenta, childa1, childa2,...

ng-switch is not working as expected

angularjs,angularjs-directive,angularjs-scope,ng-switch
Maybe the use of the 2-ways binding and $watch is still not very clear to me.. but I was expecting that this piece of code should work! I have a topNavbar directive in my index.html page. The topNavbar should show the loginButton if the user is not logged, otherwise a...