top | item 7997618

(no title)

BPm | 11 years ago

It does look simpler but could it be because there are less functionalities and it is less extensible? won't be enough to be called an alternative. I voted up though because I still think it's cool. Hope to see it grow further.

discuss

order

imakesnowflakes|11 years ago

>It does look simpler but could it be because there are less functionalities and it is less extensible?

Yes, probably. But these are my thoughts

1) How Important are the missing parts. For eg, I think you can define custom directives in angular.js. You can't do that with Sentinel.js. But can this be still useful without that feature? What I have tried to do is to minimize the number of 'things' that one needs to learn, by providing more powerful constructs. For eg, angular have ng-even and ng-odd directives to distinguish between even and odd iterations for a repeat loop. But in Sentinel.jS, you can give "sn-computed-" prefix for an attribute, and that attribute value will be evaluated and bound to the given expression. So you can cover a lot of cases with this feature that angular.js cover with a lot of directives.

2) Can we add those missing parts without sacrificing its simplicity. For eg, Dependency Injection. May be we can add it without making it a lot more complex.

Pardon me calling it as an alternative to angular.js. I just couldn't find another way to convey what it does under 80 characters. I know all of these are kind of naive. I know I am a nobody, and there is no way I can be right about these things. But those are my thoughts. Please correct me where I am wrong....