christopherthielen / angular-360-no-scope Goto Github PK
View Code? Open in Web Editor NEW$watch controllerAs data without injecting $scope
License: MIT License
$watch controllerAs data without injecting $scope
License: MIT License
The documentation defines the register method of the $controllerProvider as method which accepts as constructor parameter either:
In my case the parameter looks like that:
['dep1', 'dep2', 'dep3', function() { }]
In that case the prototype-property is undefined.
Not really an issue but i just wanted to say that you came up with a funny name ;)
In the surrogateController function, the CtrlImpl is assumed to be a function, however in the case of inline injection, the value is of type array.
I seem to have forgotten to hook up $controller() service fn decoration, which is used by ui-router, for example.
https://github.com/christopherthielen/angular-360-no-scope/blob/master/angular-360-no-scope.js#L16
this module can be really useful, but i've got this error
is not using explicit annotation and cannot be invoked in strict mode
i'm using webpack with this
and have ng-strict-di sit in body tag
if i remove ng-strict-di, 360-no-scope can work.
how can i make this module work without remove ng-strict-di
A feature request very similar to #4 but for $watchGroup.
Thanks!
I have next problem:
I do to all my JS files uglifying with Grunt. before uglifying I have to run ng-annotate, but I think there is no issue with it.
When I do this the controller prototype in angular-360-no-scope becomes undefined on injection.
The problem still remains if I do not uglifying the file it self. However, if the code is not uglified all is worked prefect!
I broke my head in order to solve this problem.
Do anybody have solution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.