Skip to content
This repository was archived by the owner on Sep 10, 2019. It is now read-only.

Add support controllerAs sintax#789

Open
edyonil wants to merge 2 commits intozurb:masterfrom
edyonil:master
Open

Add support controllerAs sintax#789
edyonil wants to merge 2 commits intozurb:masterfrom
edyonil:master

Conversation

@edyonil
Copy link

@edyonil edyonil commented Mar 17, 2016

With the rule that put the dynamic routes, will allow use controllerAs the controllers. The angular uses this as good practice to isolate the scope. Now we can use the following in views:


name: ativacao
url: /ativacao/:chave
controller: AtivacaoController

controllerAs: ativacaoCtrl

@edyonil
Copy link
Author

edyonil commented Mar 17, 2016

I did not understand. This is a problem in travis?

@JoshEllinger
Copy link

This already exists you can use the format:
controller: AtivacaoController as ativacaoCtrl

@edyonil
Copy link
Author

edyonil commented Mar 21, 2016

Where is this in the documentation? @JoshEllinger .

@JoshEllinger
Copy link

Trial and error is your friend :) don't think it's documented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants