Hello everyone,
Just a little question about multiple component inside a view. Is it
possible to do something like this easely. I would like to not create an
html with different component and then call it it there. I hope it's clear
:s
module.exports = routesConfig;
/** @ngInject */
function routesConfig($stateProvider, $urlRouterProvider,
$locationProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/',
component: 'app'
})
.state('app', {
url: '/help',
component: ['devHeader','devTitle','devFooter','devHelp']
});
}
I know that i am abusing of templates of component, but i think this a good
way to have a clear app. Just say me if we can build a view just by doing
something like this, that could be awesome !!!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.