2 ms·
I'm not an Angular expert, and this isn't quite the same, but seems to show the same basic principles at play: var helloWorldApp = angular.module('helloWorld
by chris_wot 11y ago
I'm not an Angular expert, and this isn't quite the same, but seems to show the same basic principles at play:
var helloWorldApp = angular.module('helloWorldApp', []);
HelloWorldApp.controller('HelloWorldController', function ($scope) {
$scope.displayName = "HelloMessage"
});
I believe you just add a directive to add a new element. Slightly more code, but the same concepts in play. React uses an MVC framework, only it doesn't use those exact words.
Seems pretty much the same to me!
Note that React may well be easier to understand, but its not because it doesn't use a singleton object to access an object factory created by a provider of factories (a factory that creates factories).