After delving into Angular's fundamentals a couple of months back, I am now venturing into building a practice app that mirrors industry standards.
I recently completed John Papa's Play by Play and Clean Code courses on Pluralsight, which further elaborated on his latest ng-conf presentation. While I have yet to fully digest the Style Guide, these courses have provided me with valuable insights on the what, why, and how of many concepts. However, I've encountered some confusion in replicating his code, particularly the 'blocks' decorator modules for 'router' and 'exception', as they do not seem to function properly when integrated into my project. For instance, when configuring my landing route (similar to the generator's dashboard route), I encounter issues:
(function() {
'user strict';
angular
.module('app.landing')
.run(appRun);
appRun.$inject = ['routerHelper'];
////////////////////
// @ngInject
function appRun(routerHelper) {
routerHelper.configureStates(getStates());
}
function getStates() {
return [
{
state: 'landing',
config: {
url: '/',
templateUrl: 'sections/landing/landing.html',
controller: 'Landing',
controllerAs: 'landing',
title: 'landing'
}
}
];
}
})();
In an effort to establish communication with a Rails backend, I am aiming to avoid server-side node implementations. Despite meticulously copying the 'blocks' code as instructed, the outcome is less than satisfactory. The browser fails to display any content, leaving me scratching my head and pulling out half of my hair in frustration.
If anyone could shed light on this issue, it would be immensely appreciated.