If two view use the same controller name, switching between the two view will result in the initialization and delete operation simultaneously. by zhy1 · Pull Request #225 · angular-wizard/angular-wizard · GitHub
Skip to content

If two view use the same controller name, switching between the two view will result in the initialization and delete operation simultaneously. - #225

Open
zhy1 wants to merge 1 commit into
angular-wizard:masterfrom
zhy1:master
Open

zhy1 wants to merge 1 commit into
angular-wizard:masterfrom
zhy1:master

Conversation

@zhy1

@zhy1 zhy1 commented Jan 20, 2017 •

Copy link
Copy Markdown

If two view use the same controller name, switching between the two view will result in the initialization and delete operation simultaneously.

version 1

in controller
$scope.pageName=$state.current.name;

in view
<wizard name="{{pageName}}"
version 2

in controller
do nothing.

in view
do nothing.

… two view will result in the initialization and delete operation simultaneously.
@jacobscarter

Copy link
Copy Markdown
Collaborator

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants