GithubHelp home page GithubHelp logo

xgqfrms / angular2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 9.0 171.55 MB

:fire: Angular2 :computer:

Home Page: https://angular2.xgqfrms.xyz

License: MIT License

HTML 7.54% JavaScript 87.54% CSS 2.38% TypeScript 2.51% Shell 0.04%
angular angular2 ionic typescript

angular2's Issues

Redux & Object.assign({}, state, {role: 'root'});

Redux & React

let state = {
    name: 'xgqfrms',
    age: 23,
    role: 'admin'
};


// old way to change state

state.role = 'root';

return state;

// new way to change state

return state = {
    name: 'xgqfrms',
    age: 23,
    role: 'root'
};



// no need full hand copy, ES6 Object.assign()



Object.assign(target, ...sources);


Object.assign({}, state, {role: 'root'});


image

https://app.pluralsight.com/player?course=react-redux-react-router-es6&author=cory-house&name=react-redux-react-router-es6-m6&clip=3&mode=live

ES7 @ decorator

gulp error

gulp error

open: { browser: 'Google Chrome'}

open-error

gulp-error
gulp-task-error

avevlad/gulp-connect#209

avevlad/gulp-connect#202

   gulp.task('connect',function(){
        connect.server({
            root: [outputDir],
            port: 8000,
            livereload: true,
            // open: { browser: 'Google Chrome'}
       });
    });

gulp-connect-error
gulp-connect-open-error
I just confused this ,and can not understand why !

I following the below video tutorial , but some errors occured!
(May be it out of date?)

Get started with gulp Part 6: LiveReload and web server

youtube video

I'm looking forward to hearing from your reply as soon as possible!

holy shit!!

you show me the error code!

It should be like this!

gulp.task('connect',function(){???});

gulp.task('connect',function(){
  connect.server({
  root: [outputDir],
  //port: 8080,
     livereload: true
  //open: { browser: 'Google Chrome'}
  //error ?
  });
 });

VS Code

H:\Microsoft VS Code\bin

code

shell

#!/usr/bin/env bash
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

NAME="Code"
VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")"
ELECTRON="$VSCODE_PATH/$NAME.exe"
if grep -q Microsoft /proc/version; then
	# If running under WSL don't pass cli.js to Electron as environment vars
	# cannot be transferred from WSL to Windows
	# See: https://github.com/Microsoft/BashOnWindows/issues/1363
	#      https://github.com/Microsoft/BashOnWindows/issues/1494
	"$ELECTRON" "$@"
	exit $?
fi
if [ "$(expr substr $(uname -s) 1 9)" == "CYGWIN_NT" ]; then
	CLI=$(cygpath -m "$VSCODE_PATH/resources/app/out/cli.js")
else
	CLI="$VSCODE_PATH/resources/app/out/cli.js"
fi
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
exit $?

code.cmd

@echo off
setlocal
set VSCODE_DEV=
set ELECTRON_RUN_AS_NODE=1
call "%~dp0..\Code.exe" "%~dp0..\resources\app\out\cli.js" %*
endlocal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.