Questions tagged [angular-config]
27 questions
0
votes
2 answers
Configure API URL in Angular application
I am currently using proxy.conf.json to configure API url for development. I believe it only works on the local server. How can I configure the API url when deploying it on UAT and Production server? I would like to change the API url on the server…

developer
- 1,401
- 4
- 28
- 73
0
votes
0 answers
stylePreprocessorOptions not working in Angular 8
I have seen this and may other questions. None of the answers have solved my problem.
Below is my angular.json code. I am using angular 8.
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot":…

YulePale
- 6,688
- 16
- 46
- 95
0
votes
1 answer
How do I refer to my config in my imports?
I have added AngularFire to my project. In its readme I was instructed to add the AngularFireModule.initializeApp(...) to the imports of my AppModule
In examples people use the environment constant, however, that is not an option because Deployment…

Salim
- 439
- 2
- 8
0
votes
0 answers
How to pass information to angularJS config
Hello I created basic angularJS app with angular-translate module. In config except my routing I've got also $translateProvider which is responsible for translations tables and prefered lenguage.
so this…

BT101
- 3,666
- 10
- 41
- 90
0
votes
0 answers
Angular2 dependencies add issue
I am new to Angular 2.
I am working on tour of heroes app from Angular.io. I am modifying it to have my hands on with Angular 2.
I have made a button which when clicked gives me popup. Right now I am implementing the pop up and then I came across…

user3668556
- 55
- 3
- 12
0
votes
1 answer
How can I access constants in another file from my app.js file?
I need a separate .js file which I can store in some constants.
I need to use the constants in this file in the app.js file.
The structure I am using for this and the mistake that I have encountered is like the one below.
What is the cause and…

OkurYazar
- 25
- 10
0
votes
1 answer
AngularJs: Its posible call my controllers in one js file?
I have many controllers, so i want to call all of them in one js file in my html document for example:
And in that file call all my controllers
0
votes
1 answer
Angular Js routing not working properly when file separated
//this is the app.js go down below to see controller.js
angular.module('myFirstApp',['ngRoute'])
.config(function($routeProvider){
$routeProvider.when('/contact',{
templateURL : 'contact.html'
})
…

John Masqued
- 21
- 9
0
votes
1 answer
$templateCache not working in angular-config in Angular.js
I am getting "angular.min.js:6Uncaught Error: [$injector:modulerr]" when trying to use $templateCache in my app.config block, if i remove the $templateCache parameter from app.config then i do not see any errors. Please let me know if i missed out…

Nitish Katare
- 1,147
- 2
- 12
- 22
0
votes
2 answers
stateprovider is not working in switching pages
In my program i want to load programsetup html page after pressing sign in button in login page.
myconfig function for login pages as follows
.config(function config($stateProvider) {
$stateProvider.state('login', {
url: '/login',
views: {
…

V Jayanth Reddy
- 101
- 1
- 2
- 13
0
votes
1 answer
AngularJS Error: [$injector:unpr] Unknown provider (where is uiViewScrollProvider)
Using AngularJS 1.4.8, how does one obtain a reference to uiViewScrollProvider (it's not found at injection time):
mainApp.config(['$routeProvider', '$locationProvider', '$httpProvider', '$uiViewScrollProvider', function ($routeProvider,…

Robert Christian
- 18,218
- 20
- 74
- 89
-1
votes
1 answer
Constants Config File in Angular 2
Is it possible to have a stand-alone XML or JSON config file for constant values within an angular 2 application? Reading online and the official angular documentation, here, recommends using a constants app config class within the app and then use…

J-man
- 1,743
- 3
- 26
- 50