Thanks, I'll already did this :-).
2014-10-21 18:31 GMT+03:00 Adrian Lynch <[email protected]>:
> No problem. I'm just getting into Angular so these problems are fun!
>
> You could change this:
>
> $scope.currentTab = $scope.tabs[0];
> $scope.currentTitle = $scope.tabs[0].title;
> $scope.onClickTab = function(tab) {
> $scope.currentTab = tab;
> $scope.currentTitle = tab.title;
> };
>
> To this:
>
> $scope.onClickTab = function(tab) {
> $scope.currentTab = tab;
> };
>
> $scope.onClickTab($scope.tabs[0]);
>
> $scope.currentTitle doesn't seem to be used and you can just call
> onClickTab, passing the first tab, to set the defaults.
>
> Adrian
>
> On 21 October 2014 16:24, Bogdan Ionescu <[email protected]> wrote:
>
>> That mean was typing problem: not binding problem ....
>>
>>>
>>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/7PIJ0QamtWY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
*Bogdan Mihai Ionescu*
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.