I’m not sure if I’m doing something wrong, or if there is a scope issue with my example here: http://codepen.io/gnomeontherun/pen/ruftC/
There are really two separate issues. I force the modal to open by default, because the top right + button does not trigger it right now.
- Putting an
ng-click
on theion-nav-buttons
does not seem to be compiled right, as puttingng-click="console.log('testing')"
doesn’t trigger. The directive looks ok, and I addedng-class="{test: true}"
and it adds the classtest
correctly. - After the modal is open, it should share the same scope as the controller, and the Create button calls the method to add a name. The input has
ng-model="form.name"
but when you click Create it claims it cannot read the model “Cannot read property ‘name’ of undefined” meaning that theng-model
value isn’t being picked up in the scope.
I’m scratching my head on these two right now, any ideas? Thanks!