I have the default site routes in constant :
app.constant('defaultRoutes', {
home: {
url: '/home',
templateUrl: 'templates/home.html',
controller: 'HomeController'
},
[...demais rotas....]
});
I am c...
I have an enrollment field in the table that needs to be unique
NA MIGRATION
Schema::create('professors', function (Blueprint $table) {
$table->increments('id');
$table->boolean('inativo')->default(0);
$tabl...
I have following in my app.js
(function(){
'use strict';
angular
.module('app', ['ngResource','ngRoute'])
.config(function ($routeProvider) {
$routeProvider
.otherwise({
redirectTo: '/'
});
})
.c...
I created an application sidemenu and a provider ( conexao-home.ts ). On a test page I created the function buscarUsuarios (associated with a button ), which calls the function getRemoteUsers on provide...
I'm having trouble working with the $ routeProvider of Angular.js , I have a link on a menu in which it will be mapped via route , and will later call an action in Spring , but it does not work. It always returns me 404 and I have alrea...
I'm having this error message:
ERROR Error: StaticInjectorError[CervejaService]:
StaticInjectorError[CervejaService]:
NullInjectorError: No provider for CervejaService!
at _NullInjector.get (core.js:993)
at resolveToken (core.j...
When I do routing with the id parameter ends in white page.
link
My app starts the posts appear, so I click on the post it goes to the other page and "it was to appear the content" but everything goes blank.
var app = angular.module('app'...
After installing the package through the bower, it is not recognized in the project.
Here is the code:
install command: bower install angular-permission --save
(already tried to install by npm also, but without success)
code where I use t...