1

http://plnkr.co/edit/hLsMPWp6O2uL4SheThLR?p=preview

I use push but {{tab.tabName}} return blank (line 46) in index.html

2
  • @NitishKumar no it's no, try to type something and click add button Commented Apr 6, 2014 at 15:43
  • You keep putting tab.tabName, but it is tab.name. Fix that Commented Apr 6, 2014 at 15:50

2 Answers 2

1
in app.js

Replace:

$scope.tabs.push({
    "tabId": tabId = tabId + 1,
    "name" : capitaliseFirstLetter(this.NewTabName),
    "active" : true
});

To

$scope.tabs.push({
    "tabId": tabId += 1,
    "tabName" : capitaliseFirstLetter(this.NewTabName),
    "active" : true
});
Sign up to request clarification or add additional context in comments.

Comments

0

This is your problem: (in app.js, under addTab function)

"name" : capitaliseFirstLetter(this.NewTabName),

Should be:

"tabName" : capitaliseFirstLetter(this.NewTabName),

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.