We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
If i've a ui-view like this:
<section id="main" ui-view="main" ng-class="slide.direction"></section>
At app.ctrl i can bind property slide.direction to class ui-view:
$scope.slide.direction = ""; // or whatever
But at view controller doesn't work. I can update css class inside view template but NOT at section ui-view:
.state( 'test', { url: '/test', views: { "main": { controller: 'TestCtrl', templateUrl: 'test.tpl.html' } } }) .controller ('TestCtrl', function TestController ( $scope, $filter, $state) { $scope.slide.direction = "slide-left"; }
Inside view template (in test.tpl.html) it works.
<div id="here-it-works" class="slide-left" ng-class="slide.direction">It works!</div>
But ui-view remains without class:
<section id="main" ui-view="main" class="" ng-class="slide.direction"></section>
The idea is change slide direction (so change dinamically css slide-left/slide-right at ui-view) if user click differents buttons.
Sorry by my english
The text was updated successfully, but these errors were encountered:
Plunkr?
Sorry, something went wrong.
Also see #320 (comment) and #514
This looks like a duplicate. @dlukez Let me know if I missed anything.
Yes, sorry, duplicated
No branches or pull requests
Hi,
If i've a ui-view like this:
At app.ctrl i can bind property slide.direction to class ui-view:
But at view controller doesn't work. I can update css class inside view template but NOT at section ui-view:
Inside view template (in test.tpl.html) it works.
But ui-view remains without class:
The idea is change slide direction (so change dinamically css slide-left/slide-right at ui-view) if user click differents buttons.
Sorry by my english
The text was updated successfully, but these errors were encountered: