Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 07 08:26
    testacp commented #1853
  • Nov 07 08:26
    testacp commented #1853
  • Oct 30 15:24
    emanuelcoelho1986 closed #2011
  • Oct 30 10:43
    sameerpallav commented #2025
  • Oct 15 15:20
    alanhg commented #1997
  • Sep 30 15:12
    bbrink68 commented #2049
  • Aug 23 13:34
    SouravKumar89 edited #2058
  • Aug 23 13:27
    SouravKumar89 opened #2058
  • Aug 22 00:04

    PatrickJS on master

    Update README.md (compare)

  • Aug 13 17:17
    ramsunvtech commented #1925
  • Aug 12 22:58
    terrancecorley commented #770
  • Aug 09 02:30
    jindovu commented #2049
  • Aug 09 02:22
    jindovu opened #2057
  • Aug 08 10:49
    krawinkelm commented #2053
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 21 14:14
    FilipLitwora commented #958
  • Jul 09 11:40
    Sanafan commented #1713
  • Jul 05 11:41
    hoang-innomizetech commented #2053
  • Jul 05 07:32
    Jilaba commented #1824
ROne
@ravi-mone
Screenshot from 2017-08-23 08:59:27.png
Jan Möller
@Croissong
am i correct in assuming that the current ScriptExtHtmlWebpackPlugin config includes all the functionality of the commented out preloadWebpackPlugin ?
Rishu
@rishukamboj
@Croissong this bewlo is my code . it is just simple without having to use more components.
image.png
and having this error in console.
image.png
ROne
@ravi-mone

Hello All
I have a issue in AOT with tree shaking
Scenerio 1:
When I build by application with AOT, and then running the dist folder using http-server, the application opens in the browser and works fine, No issues here :grinning:.

Scenerio 2:
But when I add tree shaking code in my file : webpack.config.js along with AOT build

 new HtmlWebpackPlugin({ title: 'Tree-shaking' })

reference : http://jakewiesler.com/tree-shaking-es6-modules-in-webpack-2/

and on running the AOT build folder, the browser displays error in the console like ERROR Error: The selector "app" did not match any elements
leaving with blank screen
Now If I remove that tree-shaking code from web-pack and run the AOT build then the Application again works properly

Not Sure, what else is missing.
please have a look at my issue, and help me if you have any idea

and the AOT build is happening on the command npm run build:aot:prod
https://github.com/AngularClass/angular-starter/blob/master/package.json
Sandeep Arambhya
@sandeepkrgupt
Hello
Is this Chat Room for Angular 2
if this chat room is Active and heplful plz reply
ROne
@ravi-mone
you are in wrong room
Deepak Kanyan
@zap-deepak
Hi friends i have created website in angular2 cli now i need seo for the same but i don't want to use angular2 universal. is there any other method for server side rendering or seo for angular 2
Stanislav Kovalenko
@KovalenkoStas
Hello all!
Can you help me in starting a new project with angular 4 starter kit with webpack and a lot of features (https://github.com/AngularClass/angular-starter), which files/folder I can delete for starting new project. Thanks.
juro
@roland-jungwirth
Hi, when using the webpack-dev-server, how can I set up proxies that pull their config from a local file?
Stanislav Kovalenko
@KovalenkoStas
@roland-jungwirth
devServer: {
        contentBase: path.join(__dirname, "dist"),
        compress: true,
        port: 9000,
        proxy: {
            '/api': {
                target: 'http://localhost:3000',
                secure: false,
                pathRewrite: {
                    "^/api": ""
                }
            }
        }
}
juro
@roland-jungwirth
@KovalenkoStas, thank you. I found that but I needed to pull the actual values from a static (non repo’ed) file. So this is what I did:
var proxies = require("../proxy.config.json");
var proxy_url = proxies.base_api_url;
...
devServer: {
      proxy: {
          '/api_request': {
              target: proxy_url,
              secure: false
          }
      }
    },
juro
@roland-jungwirth
Hi, what scenario would I use the github-deploy:prod command for?
Luke Chatton
@lukechatton
Hello! How would I go about determining if the client is running in production vs development (from the angular 2 client side, not web server)?
Luke Chatton
@lukechatton
Or better yet, access environment variables from within the angular app. I'm not too sure how the whole config/webpack.prod.js works
Luke Chatton
@lukechatton
Scratch that! Figured out how the environment provider works. Very handy :)
Phani Kiran Guttha
@phanikiranwtc

Wanted to know wether module build will be allow to deploy the module alone..

example: in my application i have one module which is used with lazy loading .

and i deploy the complete application including the lazy loaded module.

after a while there is a change in lazy loaded module. Now ther are two ways of deploying

1) Build the complete application which will build the lazy loaded module as well and deploy the complete code
2) build only the lazy loaded module and deploy it alone ( Is this possible already ?)

Peter Rabbit
@rabpeter
Hi, I got some problems when I'm using Morris js plugins , currently I'm using Angular starter repo for basic structure.
Any ideas about this?
John
@jfgouda
Hello I have an issue with WebPack to work with VS 2017 SPA template, I'm using Limitless HTML template, and in order to merge it with the SPA template I need to include custom CSS and JS to the webpack bundle. But I cannot get it to work, specially no comments or read me file to tell me where to place my custom files. I already asked the question on SOF for almost 2 weeks no answer. I would appreciate any help really. https://stackoverflow.com/questions/46384875/vs-2017-update-3-net-core-2-spa-angular-how-to-expand-the-template-and-ad
texirv0203
@texirv0203
@all I tried so many ways but still I am not able to achieve...can you help me https://stackoverflow.com/questions/46386120/typeerror-cannot-read-property-user-mainvalue-of-undefined
Dre
@mrlukrative
@all does anyone know a way to add a script to the head in the index.html dynamically. I want to be able to set the appropriate script based on the environment variable(test, staging, production) This script is for AdobeTM.
Dre
@mrlukrative
Hi can anyone help me reduce the size of the vendor.js I've been search everywhere for a solution. My vendor file is currently 4.9mb. Running the recommended --prod --aot does absolutely nothing.
bolota
@bolota
helllo
how to use i18n with build:aot?
sonoct
@sonoct
Hi does anyone one why deep linking doesn't work with AOT
Jesse Boyer
@JREAM
Hey Im new to the template, just wondering how I reference an image from src/assets/bg.jpg from src/app/app.components.scss -- do I always use bg-image: url('../assets/bg.jpg'); or is this wrong with whatever webpack is doing
Randeep
@randeepnathtr
Hi - Could you please help me to run my angular project with angular-material
I have done all the steps that mentioned in the site, but sass is not loading from assets folder
.scss files are not loading from assets folder
max
@maKSiM89
hi guys! Could you help me with such problem:
we use 3styles loaders on our project: css-loader, postcss-loader and sass loader. For the build process all rgb(a) colors are converted to the hsl(a). I need to disable this. Does anybody know how to do it and what can cause it?
texirv0203
@texirv0203

hi,

  • I am trying to learn rxjs.
  • I have a simple application retrieving values from api through rxjs.
  • I am trying to achieve Set token expiration to 2 minutes and if backend service responds with a 'Unauthorized' error, get the token again and use it.
  • can you guys tell me how to add it to my code.
  • providing my code below.

http://jsfiddle.net/5n7qdcx7/

Rx.Observable.fromPromise($.getJSON('https://api.github.com/users'))
                .subscribe(users => {
                    console.log('users ready', users);

                    $('.pai-del-menu').hide();
                    var grid = $("#grid").kendoGrid({
                        dataSource: {
                            data:
Adson Vinicius
@adsonvinicius_twitter
Hey, does anyone got this Error: URLs requested via Http on the server must be absolute before? I google and tried but i cna't figure out why i can't access my json file
texirv0203
@texirv0203

@all hi,

  • I am trying to learn rxjs.
  • I am trying to add auth token validation through my front end for my githunb api.
  • can I achieve in js side or do I need to use express js to achieve it
  • I googled for for how to add auth validation.
  • but I am not sure how to add it to my code.
  • can you guys tell me how to achieve.
  • providing my code below

https://repl.it/N0E3/1

const getJsonPromise = $.getJSON('https://api.github.com/users');

Rx.Observable
  .fromPromise(getJsonPromise)
  .retryWhen(errors => {
    return errors.scan((errorCount, err) => {
      //auth token validation
    }, 0);
  })
  .subscribe(users => {
    console.log('users ready', users);
  });
Adson Vinicius
@adsonvinicius_twitter

Is that possible in amg-polygon?

[fillColor]="getFillColor(m.cod)"

*agm
texirv0203
@texirv0203

@all hi,

  • I am trying to refresh the particular div win1.
  • I tried in both the ways refresh and setInterval but its not working.
  • any idea how to fix it.
  • providing code below

http://jsfiddle.net/csus39ow/


$("#open1").click(function () {
        $("#win1").show().kendoWindow({
            width: "300px",
            height: "500px",
            modal: true,
            title: "Window 1"
        });

        $('#win1').data('kendoGrid').refresh();

        setInterval(function () {
            var randomnumber = Math.floor(Math.random() * 100);
             debugger;
            console.log("I am here");
            //$('#win1').text('I am getting refreshed every 3 //seconds..! Random Number ==> ' + randomnumber);
        },
            1000);
    });
texirv0203
@texirv0203

hi,

  • initialy when I go sports.com and from there if I go to players it works fine.
  • after that in the same players url if I enter I am getting the below error message.
  • any idea how to fix in js

http://sports.com/players/playersJumping


Error

HTTP Status 404Not Found

Type Status Report

Message /players/playersJumping

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.23
Olga Grabek
@Olgagr
How I can turn on generating source maps on production ? Right now source map file is generated but in only contains this one {"version":3,"sources":[],"names":[],"mappings":"","file":"main.d799841e5ce53c2fb9389a7567f94401.css","sourceRoot":""}