zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 217 forks source link

Add support controllerAs sintax #789

Open edyonil opened 8 years ago

edyonil commented 8 years ago

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 commented 8 years ago

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

JoshEllinger commented 8 years ago

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

edyonil commented 8 years ago

Where is this in the documentation? @JoshEllinger .

JoshEllinger commented 8 years ago

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